guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 76371bb8d0291b522faa2c7cafd4d889ba53686c
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Sep 21 12:19:22 2025 +0100

    gnu: python-trezor: Fix tests.
    
    * gnu/packages/finance.scm (python-trezor)[build-system]: Switch to
    pyproject-build-system.
    [arguments] <test-flags>: Skip tests requiring network access
    [native-inputs]: Remove python-black, python-isort, and python-wheel;
    add nss-certs-for-test.
    
    Change-Id: Iaf3de9fa292b147503c9579d2812b049c49ec03b
---
 gnu/packages/finance.scm | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 38f26c5d0e..5c51d9329d 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -122,6 +122,7 @@
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages ninja)
+  #:use-module (gnu packages nss)
   #:use-module (gnu packages pdf)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages popt)
@@ -1323,7 +1324,22 @@ Nano dongle.")
            (for-each delete-file
                      (append (find-files "." "^CHANGELOG.unreleased$")
                              (find-files "." "^.towncrier.template.md$")))))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      #~(list "-k" (string-join
+                    ;; Failed to resolve 'data.trezor.io'
+                    (list "not test_core_basic"
+                          "test_core_code_hashes"
+                          "test_disallow_unsigned"
+                          "test_embedded_v2"
+                          "test_integrity_core"
+                          "test_integrity_legacy"
+                          "test_legacy_basic"
+                          "test_unsigned"
+                          "test_vendor_header")
+                    " and not "))))
     (propagated-inputs
      (list python-attrs
            python-click
@@ -1335,15 +1351,14 @@ Nano dongle.")
            python-requests
            python-typing-extensions))
     (native-inputs ; Only needed for running the tests
-     (list protobuf
-           python-black
-           python-isort
+     (list nss-certs-for-test
+           protobuf
+           python-pytest
            python-pillow
            python-protobuf
            python-pyqt
            python-pytest
-           python-simple-rlp
-           python-wheel))
+           python-simple-rlp))
     (home-page "https://github.com/trezor/python-trezor";)
     (synopsis "Python library for communicating with TREZOR Hardware Wallet")
     (description "@code{trezor} is a Python library for communicating with

Reply via email to