alot: fix ModuleNotFoundError of '_notmuch_config'
This commit is contained in:
parent
9bc841fec1
commit
da2a5558ab
@ -14,6 +14,12 @@ buildPythonPackage {
|
||||
|
||||
buildInputs = [ python notmuch cffi ];
|
||||
|
||||
# since notmuch 0.35, this package expects _notmuch_config.py that is
|
||||
# generated by notmuch's configure script
|
||||
postPatch = ''
|
||||
cp ${notmuch.bindingconfig}/_notmuch_config.py .
|
||||
'';
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "notmuch2" ];
|
||||
|
@ -62,7 +62,12 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
makeFlags = [ "V=1" ];
|
||||
|
||||
outputs = [ "out" "man" "info" ]
|
||||
postConfigure = ''
|
||||
mkdir ${placeholder "bindingconfig"}
|
||||
cp bindings/python-cffi/_notmuch_config.py ${placeholder "bindingconfig"}/
|
||||
'';
|
||||
|
||||
outputs = [ "out" "man" "info" "bindingconfig" ]
|
||||
++ lib.optional withEmacs "emacs"
|
||||
++ lib.optional withRuby "ruby";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user