2021-01-09 22:15:00 +00:00
|
|
|
{ lib
|
2021-01-25 08:26:54 +00:00
|
|
|
|
2018-10-17 18:19:42 +00:00
|
|
|
, buildPythonPackage
|
2020-03-29 10:34:50 +00:00
|
|
|
, notmuch
|
2018-10-17 18:19:42 +00:00
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
buildPythonPackage {
|
2020-03-29 10:34:50 +00:00
|
|
|
inherit (notmuch) pname version src;
|
2018-10-17 18:19:42 +00:00
|
|
|
|
2020-03-29 10:34:50 +00:00
|
|
|
sourceRoot = notmuch.pythonSourceRoot;
|
2018-10-17 18:19:42 +00:00
|
|
|
|
2020-03-29 10:34:50 +00:00
|
|
|
buildInputs = [ python notmuch ];
|
2018-10-17 18:19:42 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2020-03-29 10:34:50 +00:00
|
|
|
sed -i -e '/CDLL/s@"libnotmuch\.@"${notmuch}/lib/libnotmuch.@' \
|
2018-10-17 18:19:42 +00:00
|
|
|
notmuch/globals.py
|
|
|
|
'';
|
|
|
|
|
2021-01-09 22:15:00 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "notmuch" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-17 18:19:42 +00:00
|
|
|
description = "A Python wrapper around notmuch";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://notmuchmail.org/";
|
2018-10-17 18:19:42 +00:00
|
|
|
license = licenses.gpl3;
|
2019-07-03 09:27:39 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-17 18:19:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|