guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 05c86995c0d42a2b26df7ec1da8a0e849756d768
Author: Vinicius Monego <[email protected]>
AuthorDate: Mon Aug 4 22:44:19 2025 -0300

    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
---
 gnu/packages/finance.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index a706fe0240..f2177edfad 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -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

Reply via email to