guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 561dd0782c9b54d0ea0da3ab74eae3d0e51e1890
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Oct 31 09:11:11 2025 +0100
gnu: python-distlib: Move to (gnu packages python-build).
* gnu/packages/python-xyz.scm (python-distlib): Move from here…
* gnu/packages/python-build.scm (python-distlib): …to here.
Change-Id: Ib6611610e6b32a6e3cf0faab35572938c2cb6005
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-build.scm | 39 +++++++++++++++++++++++++++++++++++++++
gnu/packages/python-xyz.scm | 37 -------------------------------------
2 files changed, 39 insertions(+), 37 deletions(-)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index abd04d914e..d3451252fd 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -40,6 +40,7 @@
(define-module (gnu packages python-build)
#:use-module (gnu packages)
+ #:use-module (gnu packages bash)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
@@ -123,6 +124,44 @@ run simple @code{argparse} parsers from function
signatures.")
"Colorama is a Python library for rendering colored terminal text.")
(license license:bsd-3)))
+(define-public python-distlib
+ (package
+ (name "python-distlib")
+ (version "0.3.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "distlib" version))
+ (sha256
+ (base32
+ "1a27f5p93j9i1l3324qgahs3g8ai91fmx783jpyyla506i5ybbwx"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'no-/bin/sh
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((/bin/sh (search-input-file inputs "bin/sh")))
+ (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
+ (("/bin/sh") /bin/sh)))))
+ (add-before 'check 'prepare-test-environment
+ (lambda _
+ (setenv "HOME" "/tmp")
+ ;; NOTE: Any value works, the variable just has to be present.
+ (setenv "SKIP_ONLINE" "1"))))))
+ (native-inputs
+ (list python-pytest-bootstrap
+ python-setuptools-bootstrap))
+ (inputs
+ (list bash-minimal))
+ (home-page "https://github.com/pypa/distlib")
+ (synopsis "Distribution utilities")
+ (description "Distlib is a library which implements low-level functions
that
+relate to packaging and distribution of Python software. It is intended to be
+used as the basis for third-party packaging tools.")
+ (license license:psfl)))
+
(define-public python-more-itertools
(package
(name "python-more-itertools")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 62d6083e06..410066a535 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12625,43 +12625,6 @@ from a program in a @dfn{pager} such as
@command{less}.")
and therefore easier to read and write.")
(license license:expat)))
-(define-public python-distlib
- (package
- (name "python-distlib")
- (version "0.3.7")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "distlib" version))
- (sha256
- (base32
- "1a27f5p93j9i1l3324qgahs3g8ai91fmx783jpyyla506i5ybbwx"))))
- (build-system pyproject-build-system)
- (arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'build 'no-/bin/sh
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((/bin/sh (search-input-file inputs "bin/sh")))
- (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
- (("/bin/sh") /bin/sh)))))
- (add-before 'check 'prepare-test-environment
- (lambda _
- (setenv "HOME" "/tmp")
- ;; NOTE: Any value works, the variable just has to be present.
- (setenv "SKIP_ONLINE" "1"))))))
- (native-inputs
- (list python-pytest python-setuptools python-wheel))
- (inputs
- (list bash-minimal))
- (home-page "https://github.com/pypa/distlib")
- (synopsis "Distribution utilities")
- (description "Distlib is a library which implements low-level functions
that
-relate to packaging and distribution of Python software. It is intended to be
-used as the basis for third-party packaging tools.")
- (license license:psfl)))
-
(define-public python-distutils-extra
(package
(name "python-distutils-extra")