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