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