summaryrefslogtreecommitdiff
path: root/gnu/packages/python-build.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-31 09:11:11 +0100
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:23 +0100
commit98e6e9c4c8826be399c2119304792adf42dc66b1 (patch)
treeed68624f556a1ad09f43eba14103ada04c9c52e7 /gnu/packages/python-build.scm
parent1513445f34a758e9293a8c762fcddd15d0191acc (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-build.scm')
-rw-r--r--gnu/packages/python-build.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 9177a9b65e3..b43ae4f0781 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")