From 586d4a71b16d14f00df3b4c7b89e310bb2e991ea Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 27 Jan 2026 09:53:07 +0100 Subject: [PATCH] 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 --- 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 3a790dc5fb..1ba1801b46 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/")