guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit de55e2aacd3a62c90673eb089fbf9e2577bd201a
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Jun 14 22:13:11 2026 +0100
gnu: python-distlib: Update to 0.4.3.
* gnu/packages/python-build.scm (python-distlib): Update to 0.4.3.
[source]: Switch to git-fetch.
[arguments] <test-backend, test-flags>: Use 'custom, avoiding dependency
on Pytest.
[phases]{fix-tests-on-unprivileged-daemon}: New phase.
[native-inputs]: Remove python-pytest-bootstrap.
Relates-to: guix/guix!5861
Change-Id: I8384b93f0291733371bd442b7d6c08f30320f31f
Co-authored-by: Liliana Marie Prikler <[email protected]>
---
gnu/packages/python-build.scm | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 0c072183bb..69da97a8bc 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -126,19 +126,29 @@ run simple @code{argparse} parsers from function
signatures.")
(define-public python-distlib
(package
(name "python-distlib")
- (version "0.3.7")
+ (version "0.4.3")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "distlib" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pypa/distlib")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1a27f5p93j9i1l3324qgahs3g8ai91fmx783jpyyla506i5ybbwx"))))
+ (base32 "116qm6gr1frgdwq5agyyggi346a3cjdsni3rh2z7kxaf83aq70pk"))))
(build-system pyproject-build-system)
(arguments
(list
+ #:test-backend #~'custom
+ #:test-flags #~(list "tests/test_all.py")
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests-on-unprivileged-daemon
+ (lambda _
+ (substitute* "tests/test_util.py"
+ ;; /etc may be writable under unprivileged daemon (sandbox).
+ (("self\\.assertFalse\\(self.*is_writable\\('/etc'\\)\\)" all)
+ (string-append "pass # " all)))))
(add-before 'build 'no-/bin/sh
(lambda* (#:key inputs #:allow-other-keys)
(let ((/bin/sh (search-input-file inputs "bin/sh")))
@@ -150,8 +160,7 @@ run simple @code{argparse} parsers from function
signatures.")
;; NOTE: Any value works, the variable just has to be present.
(setenv "SKIP_ONLINE" "1"))))))
(native-inputs
- (list python-pytest-bootstrap
- python-setuptools-bootstrap))
+ (list python-setuptools-bootstrap))
(inputs
(list bash-minimal))
(home-page "https://github.com/pypa/distlib")