mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 22:26:40 -05:00
gnu: magic-wormhole: Simplify package.
* gnu/packages/magic-wormhole.scm: Use G-expressions. [build-system]: Swap to pyproject-bulid-system. [arguments]: <#:phases>: Remove trailing #t from lambda. [native-inputs]: Add python-pytest. Remove python-noiseprototocl. [propagated-inputs]: Add python-noiseprototocl, listed as an optional install dependence. Change-Id: Ie00a23ed3d31ca46d200fa6dfc5404f7803aae14
This commit is contained in:
parent
68455ddf4b
commit
fb667a7a8a
1 changed files with 14 additions and 15 deletions
|
@ -20,7 +20,9 @@
|
|||
(define-module (gnu packages magic-wormhole)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix licenses)
|
||||
#:use-module (guix build-system pyproject)
|
||||
#:use-module (guix build-system python)
|
||||
#:use-module (gnu packages check)
|
||||
#:use-module (gnu packages python-check)
|
||||
|
@ -115,24 +117,20 @@ (define-public magic-wormhole
|
|||
(sha256
|
||||
(base32
|
||||
"05hm5pnrxli69a28h3pbgx6s6pwy8279l506kha7y3i7hs1dcfxc"))))
|
||||
(build-system python-build-system)
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; XXX I can't figure out how to build the docs properly.
|
||||
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34515#101
|
||||
(add-after 'install 'install-docs
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(man (string-append out "/share/man/man1")))
|
||||
(install-file "docs/wormhole.1" man))
|
||||
#t)))))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; XXX I can't figure out how to build the docs properly.
|
||||
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34515#101
|
||||
(add-after 'install 'install-docs
|
||||
(lambda _
|
||||
(install-file "docs/wormhole.1"
|
||||
(string-append #$output "/share/man/man1")))))))
|
||||
(native-inputs
|
||||
(list python-mock
|
||||
python-noiseprotocol
|
||||
;; XXX These are required for the test suite but end up being referenced
|
||||
;; by the built package.
|
||||
;; https://bugs.gnu.org/25235
|
||||
python-pytest
|
||||
magic-wormhole-mailbox-server
|
||||
magic-wormhole-transit-relay))
|
||||
(propagated-inputs
|
||||
|
@ -140,6 +138,7 @@ (define-public magic-wormhole
|
|||
python-click
|
||||
python-hkdf
|
||||
python-humanize
|
||||
python-noiseprotocol
|
||||
python-pynacl
|
||||
python-spake2
|
||||
python-tqdm
|
||||
|
|
Loading…
Reference in a new issue