pythonPackages.notmuch: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 14:19:42 -04:00 committed by Frederik Rietdijk
parent e789672945
commit 48d6229352
2 changed files with 29 additions and 20 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, pkgs
, python
}:
buildPythonPackage rec {
name = "python-${pkgs.notmuch.name}";
src = pkgs.notmuch.src;
sourceRoot = pkgs.notmuch.pythonSourceRoot;
buildInputs = [ python pkgs.notmuch ];
postPatch = ''
sed -i -e '/CDLL/s@"libnotmuch\.@"${pkgs.notmuch}/lib/libnotmuch.@' \
notmuch/globals.py
'';
meta = with stdenv.lib; {
description = "A Python wrapper around notmuch";
homepage = https://notmuchmail.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ garbas ];
};
}

View File

@ -2942,26 +2942,7 @@ in {
notify2 = callPackage ../development/python-modules/notify2 {};
notmuch = buildPythonPackage rec {
name = "python-${pkgs.notmuch.name}";
src = pkgs.notmuch.src;
sourceRoot = pkgs.notmuch.pythonSourceRoot;
buildInputs = with self; [ python pkgs.notmuch ];
postPatch = ''
sed -i -e '/CDLL/s@"libnotmuch\.@"${pkgs.notmuch}/lib/libnotmuch.@' \
notmuch/globals.py
'';
meta = {
description = "A Python wrapper around notmuch";
homepage = https://notmuchmail.org/;
maintainers = with maintainers; [ garbas ];
};
};
notmuch = callPackage ../development/python-modules/notmuch { };
emoji = callPackage ../development/python-modules/emoji { };