rekado pushed a commit to branch master
in repository guix.

commit 4fde638b3b801dce26bd2e3bfc4e92e68ca8c173
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Tue Jan 14 15:37:09 2025 +0100

    gnu: python-toolrack: Update to 4.0.1.
    
    * gnu/packages/python-xyz.scm (python-toolrack): Update to 4.0.1.
    [build-system]: Use pyproject-build-system.
    [arguments]: Adjust phase 'patch-/bin/sh; remove custom 'check phase.
    [native-inputs]: Add python-setuptools and python-wheel.
    
    Change-Id: I3de26b028d5eeb23a534ae2dc17e8084249d19e1
---
 gnu/packages/python-xyz.scm | 28 ++++++++++------------------
 1 file changed, 10 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0259d60d78..a7d9ea0b06 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29853,7 +29853,7 @@ instead of pickle.")
 (define-public python-toolrack
   (package
     (name "python-toolrack")
-    (version "3.0.1")
+    (version "4.0.1")
     (source
      (origin
        (method git-fetch)
@@ -29863,30 +29863,22 @@ instead of pickle.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0ych11b7nchnkhqgf7dgivbvn2lzafjsi7nhb1an5zjjyns39gpx"))))
-    (build-system python-build-system)
+         "03ard57xc2x0lpnzgrgfb9fqlq1y031ygp8jn2v2fg87i586gjsy"))))
+    (build-system pyproject-build-system)
     (arguments
      (list
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'patch-/bin/sh
             (lambda _
-              (substitute* "toolrack/aio/tests/test_process.py"
+              (substitute* "tests/aio/process_test.py"
                 (("/bin/sh")
-                 (which "sh")))))
-          (replace 'check
-            (lambda* (#:key tests? #:allow-other-keys)
-              (when tests?
-                (invoke "pytest" "-vv" "--pyargs" "toolrack"
-                        "-k"
-                        (string-append
-                         ;; These tests fail for unknown reason comparing the
-                         ;; expected output of shell scripts.
-                         "not test_parse_stderr "
-                         "and not test_parse_no_ending_newline "
-                         "and not test_parse_stdout"))))))))
-    (native-inputs (list python-pytest python-pytest-asyncio
-                         python-pytest-mock))
+                 (which "sh"))))))))
+    (native-inputs (list python-pytest
+                         python-pytest-asyncio
+                         python-pytest-mock
+                         python-setuptools
+                         python-wheel))
     (home-page "https://github.com/albertodonato/toolrack";)
     (synopsis "Collection of Python utility functions and classes")
     (description "This package provides a collection of miscellaneous utility

Reply via email to