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 @@
40 40
41(define-module (gnu packages python-build) 41(define-module (gnu packages python-build)
42 #:use-module (gnu packages) 42 #:use-module (gnu packages)
43 #:use-module (gnu packages bash)
43 #:use-module ((guix licenses) #:prefix license:) 44 #:use-module ((guix licenses) #:prefix license:)
44 #:use-module (guix build-system gnu) 45 #:use-module (guix build-system gnu)
45 #:use-module (guix build-system python) 46 #:use-module (guix build-system python)
@@ -123,6 +124,44 @@ run simple @code{argparse} parsers from function signatures.")
123 "Colorama is a Python library for rendering colored terminal text.") 124 "Colorama is a Python library for rendering colored terminal text.")
124 (license license:bsd-3))) 125 (license license:bsd-3)))
125 126
127(define-public python-distlib
128 (package
129 (name "python-distlib")
130 (version "0.3.7")
131 (source
132 (origin
133 (method url-fetch)
134 (uri (pypi-uri "distlib" version))
135 (sha256
136 (base32
137 "1a27f5p93j9i1l3324qgahs3g8ai91fmx783jpyyla506i5ybbwx"))))
138 (build-system pyproject-build-system)
139 (arguments
140 (list
141 #:phases
142 #~(modify-phases %standard-phases
143 (add-before 'build 'no-/bin/sh
144 (lambda* (#:key inputs #:allow-other-keys)
145 (let ((/bin/sh (search-input-file inputs "bin/sh")))
146 (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
147 (("/bin/sh") /bin/sh)))))
148 (add-before 'check 'prepare-test-environment
149 (lambda _
150 (setenv "HOME" "/tmp")
151 ;; NOTE: Any value works, the variable just has to be present.
152 (setenv "SKIP_ONLINE" "1"))))))
153 (native-inputs
154 (list python-pytest-bootstrap
155 python-setuptools-bootstrap))
156 (inputs
157 (list bash-minimal))
158 (home-page "https://github.com/pypa/distlib")
159 (synopsis "Distribution utilities")
160 (description "Distlib is a library which implements low-level functions that
161relate to packaging and distribution of Python software. It is intended to be
162used as the basis for third-party packaging tools.")
163 (license license:psfl)))
164
126(define-public python-more-itertools 165(define-public python-more-itertools
127 (package 166 (package
128 (name "python-more-itertools") 167 (name "python-more-itertools")