2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-11-15 13:44:38 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, notmuch
|
|
|
|
, python
|
|
|
|
, cffi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "notmuch2";
|
|
|
|
inherit (notmuch) version src;
|
|
|
|
|
2021-08-06 21:57:35 +00:00
|
|
|
sourceRoot = "notmuch-${notmuch.version}/bindings/python-cffi";
|
2020-11-15 13:44:38 +00:00
|
|
|
|
|
|
|
buildInputs = [ python notmuch cffi ];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
# 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 .
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "notmuch2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-11-15 13:44:38 +00:00
|
|
|
description = "Pythonic bindings for the notmuch mail database using CFFI";
|
|
|
|
homepage = "https://notmuchmail.org/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ teto ];
|
|
|
|
};
|
|
|
|
}
|