pythonPackages.notmuch: refactor move to python-modules
This commit is contained in:
parent
e789672945
commit
48d6229352
28
pkgs/development/python-modules/notmuch/default.nix
Normal file
28
pkgs/development/python-modules/notmuch/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user