11 format = "setuptools";
12 inherit (notmuch) version src;
14 sourceRoot = "notmuch-${notmuch.version}/bindings/python-cffi";
23 propagatedBuildInputs = [ cffi ];
25 # since notmuch 0.35, this package expects _notmuch_config.py that is
26 # generated by notmuch's configure script. We write one which references our
29 cat > _notmuch_config.py << EOF
31 dir_path = os.path.dirname(os.path.realpath(__file__))
32 NOTMUCH_VERSION_FILE=os.path.join(dir_path, '../../version.txt')
33 NOTMUCH_INCLUDE_DIR='${notmuch.out}/lib'
34 NOTMUCH_LIB_DIR='${notmuch.out}/lib'
40 pythonImportsCheck = [ "notmuch2" ];
43 description = "Pythonic bindings for the notmuch mail database using CFFI";
44 homepage = "https://notmuchmail.org/";
45 license = licenses.gpl3;
46 maintainers = with maintainers; [ teto ];