guix_mirror_bot pushed a commit to branch master
in repository guix.

commit e3f81f5955b1c043cefb1a383bdd6be4e7c131e9
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Thu Oct 23 22:10:53 2025 +0200

    gnu: python-usbrelay: Fix build.
    
    * gnu/packages/hardware.scm (python-usbrelay): Fix build.
    [arguments] <#:phases>: Replace 'check phase.
    [native-inputs]: Remove python-wheel.
    
    Change-Id: I8b1de9158c277e83775fad4cab9ce56f87a8caab
---
 gnu/packages/hardware.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index 5df8768dd8..6d62734954 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -1772,8 +1772,7 @@ output relays.")
     (name "python-usbrelay")
     (build-system pyproject-build-system)
     (native-inputs
-     (list python-setuptools
-           python-wheel))
+     (list python-setuptools))
     (inputs
      (list usbrelay))
     (propagated-inputs
@@ -1791,7 +1790,11 @@ output relays.")
               (chmod (string-append #$output "/sbin/usbrelayd") #o555)))
           (add-after 'install-daemon 'chdir
             (lambda _
-              (chdir "usbrelay_py"))))))
+              (chdir "usbrelay_py")))
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "python" "tests/usbrelay_test.py")))))))
     (synopsis "Python library to control USB relay modules")
     (description
      "This is the Python extension to @code{usbrelay}, a Linux driver based on

Reply via email to