[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: Add python-notmuch.
From: |
Alex Kost |
Subject: |
03/07: gnu: Add python-notmuch. |
Date: |
Thu, 11 Aug 2016 15:13:58 +0000 (UTC) |
alezost pushed a commit to branch master
in repository guix.
commit 4b6909bc03269c3e73863069678df88d62c742f8
Author: Troy Sankey <address@hidden>
Date: Sun Aug 7 13:26:30 2016 -0400
gnu: Add python-notmuch.
* gnu/packages/mail.scm (python-notmuch): New variable.
Co-authored-by: Alex Kost <address@hidden>
---
gnu/packages/mail.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index d17228e..990739e 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -520,6 +520,38 @@ ing, and tagging large collections of email messages.")
useful for email address completion.")
(license license:expat)))
+(define-public python-notmuch
+ (package
+ (name "python-notmuch")
+ (version "0.22.1")
+ ;; Notmuch python bindings are now unavailable on pypi. The
+ ;; bindings are distributed via the notmuch release tarball.
+ (source (package-source notmuch))
+ (build-system python-build-system)
+ (inputs `(("notmuch" ,notmuch)))
+ (arguments
+ `(#:tests? #f ; no "test" target
+ #:phases
+ (modify-phases %standard-phases
+ ;; This python package lives in a subdirectory of the notmuch source
+ ;; tree, so chdir into it before building.
+ (add-after 'unpack 'enter-python-dir
+ (lambda _ (chdir "bindings/python") #t))
+ ;; Make sure the correct notmuch shared library gets loaded.
+ (add-before 'build 'set-libnotmuch-file-name
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((notmuch (assoc-ref inputs "notmuch")))
+ (substitute* "notmuch/globals.py"
+ (("libnotmuch\\.so\\.")
+ (string-append notmuch "/lib/libnotmuch.so.")))
+ #t))))))
+ (home-page "http://notmuchmail.org/")
+ (synopsis "Python bindings of the Notmuch mail indexing library")
+ (description
+ "This package provides Python bindings to use the Notmuch mail indexing
+and search library.")
+ (license gpl3+)))
+
(define-public python2-notmuch
(package
(name "python2-notmuch")
- branch master updated (b3de5ff -> e08ca4b), Alex Kost, 2016/08/11
- 05/07: gnu: dwm: Shorten the description., Alex Kost, 2016/08/11
- 02/07: gnu: notmuch: Use 'emacs-minimal' instead of 'emacs'., Alex Kost, 2016/08/11
- 07/07: gnu: Add emacs-neotree., Alex Kost, 2016/08/11
- 06/07: gnu: Add sic., Alex Kost, 2016/08/11
- 01/07: gnu: notmuch: Update to 0.22.1., Alex Kost, 2016/08/11
- 04/07: gnu: python2-notmuch: Update to 0.22.1., Alex Kost, 2016/08/11
- 03/07: gnu: Add python-notmuch.,
Alex Kost <=