guix_mirror_bot pushed a commit to branch master
in repository guix.

commit d3c14a96b466c102d290b4edf9b4858680e5e693
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Nov 29 20:44:11 2025 +0100

    gnu: hydrus-network: Switch to pyproject.
    
    * gnu/packages/image-viewers.scm (hydrus-network):
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Rewrite 'check phase replacement.
    [native-inputs]: Add python-setuptools.  Remove python-nose.
    
    Change-Id: Ibf6c4e5beacb220c66ede6991ae7b47d873c5c9a
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/image-viewers.scm | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index 9fb97eee9f..f44e7a443a 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -1188,7 +1188,7 @@ synchronization of multiple instances.")
        (snippet
         ;; Remove pre-built binaries from bin/.
         #~(for-each delete-file (find-files "bin" "^swfrender")))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
      (list
       #:phases
@@ -1198,11 +1198,12 @@ synchronization of multiple instances.")
             ;; other build system to build itself - it's delivered ready to
             ;; run from the source.
             (replace 'check
-              (lambda _
-                (setenv "DISPLAY" ":0")
-                (setenv "XDG_CACHE_HOME" (getcwd))
-                (setenv "HOME" (getcwd))
-                (invoke "xvfb-run" "python" "hydrus_test.py")))
+              (lambda* (#:key tests? #:allow-other-keys)
+                (when tests?
+                  (setenv "DISPLAY" ":0")
+                  (setenv "XDG_CACHE_HOME" (getcwd))
+                  (setenv "HOME" (getcwd))
+                  (invoke "xvfb-run" "python" "hydrus_test.py"))))
             ;; XXX: program help files are not built.  Updating
             ;; python-pymdown-extensions to its latest version might be the
             ;; solution, but this would require also packaging its new build
@@ -1257,10 +1258,7 @@ synchronization of multiple instances.")
                   (chmod server #o0555))))))))
     ;; All native-inputs are only needed for the the check phase
     (native-inputs
-     (list xvfb-run
-           python-nose
-           python-mock
-           python-httmock))
+     (list xvfb-run python-mock python-httmock python-setuptools))
     ;; All python packages were taken from 
static/build_files/linux/requirements.txt
     (propagated-inputs
      (list python-beautifulsoup4

Reply via email to