nixpkgs/pkgs/development/python-modules/notmuch/default.nix

32 lines
575 B
Nix
Raw Normal View History

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