about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/notmuch/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/notmuch/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/notmuch/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/notmuch/default.nix b/nixpkgs/pkgs/development/python-modules/notmuch/default.nix
new file mode 100644
index 000000000000..609d4c78d5d7
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/notmuch/default.nix
@@ -0,0 +1,31 @@
+{ lib
+, 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
+  '';
+
+  # 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; [ ];
+  };
+
+}