[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/27: gnu: python-distlib: Update to 0.3.5.
From: |
guix-commits |
Subject: |
08/27: gnu: python-distlib: Update to 0.3.5. |
Date: |
Fri, 9 Sep 2022 11:08:13 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 6c03dce10d00af23657da89472c38fce8e9a41a5
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Aug 12 11:53:54 2022 +0200
gnu: python-distlib: Update to 0.3.5.
* gnu/packages/python-xyz.scm (python-distlib): Update to 0.3.5.
[source](uri): Use tarball instead of zipball.
[arguments]: Use gexp and a PEP517-style build.
[native-inputs]: Add PYTHON-PYPA-BUILD and PYTHON-PYTEST.
---
gnu/packages/python-xyz.scm | 48 ++++++++++++++++++++++++++++-----------------
1 file changed, 30 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 860e10adb9..235a27fde9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6955,31 +6955,43 @@ by pycodestyle.")
(define-public python-distlib
(package
(name "python-distlib")
- (version "0.3.1")
+ (version "0.3.5")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "distlib" version ".zip"))
+ (uri (pypi-uri "distlib" version))
(sha256
(base32
- "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))
+ "1zmjraasgqkz0gfv4mc4w4fj4k2fxj62h1pf5dgb5qqbqwvmgxx7"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'build 'no-/bin/sh
- (lambda _
- (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
- (("/bin/sh") (which "sh")))
- #t))
- (add-before 'check 'prepare-test-env
- (lambda _
- (setenv "HOME" "/tmp")
- ;; NOTE: Any value works, the variable just has to be present.
- (setenv "SKIP_ONLINE" "1")
- #t)))))
- (native-inputs (list unzip))
- (home-page "https://bitbucket.org/pypa/distlib")
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'build
+ (lambda _
+ ;; ZIP does not support timestamps before 1980.
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (add-before 'build 'no-/bin/sh
+ (lambda _
+ (substitute* '("distlib/scripts.py" "tests/test_scripts.py")
+ (("/bin/sh") (which "sh")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (setenv "HOME" "/tmp")
+ ;; NOTE: Any value works, the variable just has to be present.
+ (setenv "SKIP_ONLINE" "1")
+ (when tests?
+ (invoke "pytest" "-vv"))))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output whl)))))))
+ (native-inputs
+ (list python-pypa-build python-pytest))
+ (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
- 03/27: gnu: gjs: Update to 1.73.2., (continued)
- 03/27: gnu: gjs: Update to 1.73.2., guix-commits, 2022/09/09
- 04/27: gnu: serf: Build with the default scons., guix-commits, 2022/09/09
- 18/27: gnu: Remove python-pytest-forked-next., guix-commits, 2022/09/09
- 21/27: gnu: python-pytest-mock: Update to 3.8.2., guix-commits, 2022/09/09
- 07/27: gnu: python-pytest: Update to 7.1.3., guix-commits, 2022/09/09
- 16/27: gnu: python-pytest-xdist: Add extra test input, don't propagate pytest., guix-commits, 2022/09/09
- 17/27: gnu: Remove python-pytest-xdist-next., guix-commits, 2022/09/09
- 25/27: gnu: SQLite: Update to 3.39.3., guix-commits, 2022/09/09
- 19/27: gnu: python-fonttools: Update to 4.37.1., guix-commits, 2022/09/09
- 20/27: gnu: python-parameterized: Update to 0.8.1., guix-commits, 2022/09/09
- 08/27: gnu: python-distlib: Update to 0.3.5.,
guix-commits <=
- 06/27: gnu: python-pytest: Remove input labels., guix-commits, 2022/09/09
- 26/27: gnu: autotrace: Update to 0.31.9., guix-commits, 2022/09/09
- 15/27: gnu: python-pyfakefs: Update to 4.6.3., guix-commits, 2022/09/09
- 23/27: gnu: python-pygobject: Update to 3.42.2., guix-commits, 2022/09/09
- 11/27: gnu: Deprecate the 'python-pytest-6' variable., guix-commits, 2022/09/09
- 05/27: gnu: python-sortedcontainers: Update to 2.4.0., guix-commits, 2022/09/09
- 14/27: gnu: python-py: Update to 1.11.0., guix-commits, 2022/09/09
- 22/27: gnu: python-pytest-timeout: Update to 2.1.0., guix-commits, 2022/09/09
- 24/27: gnu: python-lxml: Update to 4.9.1., guix-commits, 2022/09/09
- 27/27: gnu: autotrace: Don't build static library., guix-commits, 2022/09/09