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

commit efdfc33dbd73b9b9b2dfa53a410a383c67a5dda8
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Jan 27 09:53:07 2026 +0100

    gnu: python-pytooling: Update to 8.11.0.
    
    * gnu/packages/python-xyz.scm (python-pytooling): Update to 8.11.0.
    [arguments]<#:test-flags>: Update them.
    <#:phases>: Add phase 'patch-git-bin-for-tests to drop former failing
    tests.
    [native-inputs]: Add python-aiohttp, python-requests.
    
    Change-Id: Ie23d82f758d6361fa948ab97f314d7f25e91bbc8
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0b95b4ac61..57809b347f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -4276,7 +4276,7 @@ configuration file.")
 (define-public python-pytooling
   (package
     (name "python-pytooling")
-    (version "8.7.6")
+    (version "8.11.0")
     (source
      (origin
        (method git-fetch)
@@ -4285,7 +4285,7 @@ configuration file.")
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "1n0idfiwcsssvy3kfwkgdpwx7zmvzp44mv0285d8argdy6rd48p0"))))
+        (base32 "07vlx2kfcxhkm0dj3d3pgdxmqbv2hzgzgdrnpnjjf30pacwrlq1m"))))
     (build-system pyproject-build-system)
     (arguments
      (list
@@ -4294,17 +4294,26 @@ configuration file.")
       #:tests? (not (or (%current-target-system)
                              (target-x86-32?)))
       #:test-flags
-      #~(list "tests/unit"
-              "-k" (string-join
-                    ;; Tests checking in /usr/bin and /usr/bin/git paths.
-                    (list "not test_BinaryDirectory"
-                          "test_ExecutablePath"
-                          "test_VersionFlag")
-                    " and not "))))
+      #~(list
+         "tests/unit"
+         ;; These tests try to access the network.
+         "--deselect=tests/unit/Dependency/Python.py::PyPI::test_SphinxReports"
+         "--deselect=tests/unit/Dependency/Python.py::PyPI::test_pyTooling"
+         "--deselect=tests/unit/Dependency/Python.py::PyPI::test_pyVersioning")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-git-bin-for-tests
+            (lambda* (#:key inputs #:allow-other-keys)
+              (substitute* (list "tests/unit/CLIAbstraction/Executable.py"
+                                 "tests/unit/CLIAbstraction/Program.py")
+                (("/usr/bin")
+                 (dirname (search-input-file inputs "/bin/git")))))))))
     (native-inputs
      (list git-minimal/pinned
+           python-aiohttp
            python-colorama
            python-pytest
+           python-requests
            python-ruamel.yaml
            python-setuptools))
     (home-page "https://pytooling.github.io/pyTooling/";)

Reply via email to