aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch/2.nix22
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch/default.nix26
2 files changed, 48 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch/2.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch/2.nix
new file mode 100644
index 000000000000..593eed6c2514
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch/2.nix
@@ -0,0 +1,22 @@
+{ stdenv
+, buildPythonPackage
+, notmuch
+, python
+, cffi
+}:
+
+buildPythonPackage {
+ pname = "notmuch2";
+ inherit (notmuch) version src;
+
+ sourceRoot = "${notmuch.src.name}/bindings/python-cffi";
+
+ buildInputs = [ python notmuch cffi ];
+
+ meta = with stdenv.lib; {
+ description = "Pythonic bindings for the notmuch mail database using CFFI";
+ homepage = "https://notmuchmail.org/";
+ license = licenses.gpl3;
+ maintainers = with maintainers; [ teto ];
+ };
+}
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch/default.nix
new file mode 100644
index 000000000000..4ae42b3390b5
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/notmuch/default.nix
@@ -0,0 +1,26 @@
+{ stdenv
+, buildPythonPackage
+, notmuch
+, python
+}:
+
+buildPythonPackage {
+ inherit (notmuch) pname version src;
+
+ sourceRoot = notmuch.pythonSourceRoot;
+
+ buildInputs = [ python notmuch ];
+
+ postPatch = ''
+ sed -i -e '/CDLL/s@"libnotmuch\.@"${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; [ ];
+ };
+
+}