gnu: electrum: Enable tests.

* gnu/packages/finance.scm (electrum)[arguments]: Remove '#:tests? #f'.
<#:test-flags>: Skip one test.
<#:phases>: Add phase 'set-home' before 'check'.
[native-inputs]: Add python-pytest.

Change-Id: I1e42b973aec17ba2c0d4ec605190ba76b3a42136
This commit is contained in:
Vinicius Monego 2025-08-04 22:44:19 -03:00
parent d27220759c
commit 05c86995c0
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -652,7 +652,10 @@ require Coincurve.")
(build-system pyproject-build-system)
(arguments
(list
#:tests? #f ; no tests
;; Either pycryptodomex or cryptography must be available.
;; This package uses python-cryptography, but this test checks for
;; cryptodomex anyway. Skip it since it's not useful.
#:test-flags #~(list "-k" "not test_pycryptodomex_is_available")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'relax-deps
@ -662,8 +665,11 @@ require Coincurve.")
;; the developer does not want to introduce Hatchling in
;; the build environment. They do work at runtime.
(("attrs.*") "attrs")
(("dnspython.*") "dnspython")))))))
(native-inputs (list python-setuptools python-wheel))
(("dnspython.*") "dnspython"))))
(add-before 'check 'set-home
(lambda _ ; 3 tests run mkdir
(setenv "HOME" "/tmp"))))))
(native-inputs (list python-pytest python-setuptools python-wheel))
(inputs
(list electrum-aionostr
python-aiohttp