mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: python-notmuch: Use pyproject-build-system.
* gnu/packages/mail.scm (python-notmuch): Use G-expressions. [build-system]: Use pyproject. [native-inputs]: Add python-setuptools and python-wheel. Change-Id: I2090c421691d0872e5f05bcb82d80fcb99e79df0
This commit is contained in:
parent
e92b467c74
commit
df273f902f
1 changed files with 21 additions and 16 deletions
|
|
@ -1661,23 +1661,28 @@ useful for email address completion.")
|
|||
;; 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 (list notmuch))
|
||||
(build-system pyproject-build-system)
|
||||
(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 "contrib/python-legacy") #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.")))))))))
|
||||
(list
|
||||
#:tests? #f ; no tests provided
|
||||
#: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 "contrib/python-legacy") #t))
|
||||
;; Make sure the correct notmuch shared library gets loaded.
|
||||
(add-before 'build 'set-libnotmuch-file-name
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "notmuch/globals.py"
|
||||
(("libnotmuch\\.so\\.")
|
||||
(format #f "~a/lib/libnotmuch.so."
|
||||
#$(this-package-input "notmuch")))))))))
|
||||
(native-inputs
|
||||
(list python-setuptools
|
||||
python-wheel))
|
||||
(inputs
|
||||
(list notmuch))
|
||||
(home-page (package-home-page notmuch))
|
||||
(synopsis "Python bindings of the Notmuch mail indexing library")
|
||||
(description
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue