2018-10-17 19:19:42 +01:00
|
|
|
{ stdenv
|
|
|
|
, 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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|