gnu: magic-wormhole-mailbox-server: Simplify package.

* gnu/packages/magic-wormhole.scm (magic-wormhole-mailbox-server)
[build-system]: Swap to pyproject-build-system.
[arguments] <#:phases>: Remove 'patch-tests phase.
[native-inputs]: Add python-pytest.

Change-Id: I23085e927965c2191bad242a0fb07132cb30e99d
This commit is contained in:
Sharlatan Hellseher 2024-03-23 17:50:34 +00:00
parent 3b43d01c61
commit 9972487417
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -41,18 +41,9 @@ (define-public magic-wormhole-mailbox-server
(sha256
(base32
"1yw8i8jv5iv1kkz1aqimskw7fpichjn6ww0fq0czbalwj290bw8s"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-tests
(lambda _
;; This test requires network access.
(substitute* "src/wormhole_mailbox_server/test/test_web.py"
(("test_log_http") "disabled_test_log_http"))
#t)))))
(build-system pyproject-build-system)
(native-inputs
(list python-mock))
(list python-mock python-pytest))
(propagated-inputs
(list python-attrs
python-autobahn