[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#63139] [PATCH python 14/20] gnu: Update python-pypa-build to 1.0.0.
From: |
John Kehayias |
Subject: |
[bug#63139] [PATCH python 14/20] gnu: Update python-pypa-build to 1.0.0. |
Date: |
Fri, 28 Apr 2023 05:51:27 +0000 |
* gnu/packages/python-build.scm (python-pypa-build): Rename to...
(python-pypa-build-bootstrap): ... this.
(python-pypa-build): Update to 1.0.0.
---
gnu/packages/python-build.scm | 39 +++++++++++++++++++++++++++++++++--
1 file changed, 37 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 45b9f52b68..090f0d2274 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -502,9 +502,9 @@ (define-public python-packaging-bootstrap
;;; The name 'python-pypa-build' is chosen rather than 'python-build' to avoid
;;; a name clash with python-build from (guix build-system python).
-(define-public python-pypa-build
+(define-public python-pypa-build-bootstrap
(package
- (name "python-pypa-build")
+ (name "python-pypa-build-bootstrap")
(version "0.7.0")
(source (origin
(method url-fetch)
@@ -534,6 +534,41 @@ (define-public python-pypa-build
order to make bootstrapping easier.")
(license license:expat)))
+(define-public python-pypa-build
+ (package
+ (inherit python-pypa-build-bootstrap)
+ (name "python-pypa-build")
+ (version "0.10.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "build" version))
+ (sha256
+ (base32
+ "0scj5k586n8rmnlqhay5j43ci1z8ip3sm0j4f3b52nfvmxj15dym"))))
+ (arguments
+ (list
+ #:tests? #f ; avoid needing pytest as an input
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'use-toml-instead-of-tomli
+ ;; Using toml instead of tomli eases bootstrapping.
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("'tomli.*")
+ "'toml'"))))
+ (replace 'build
+ (lambda _
+ ;(setenv "PYTHONPATH" ".")
+ (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
+ (replace 'install
+ (lambda _
+ (let ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip" "--no-cache-dir" "--no-input"
+ "install" "--no-deps" "--prefix" #$output
+ "--ignore-installed" whl)))))))
+ (native-inputs (list python-flit-core-bootstrap
python-pypa-build-bootstrap))
+ (propagated-inputs (list python-pyproject-hooks))))
+
(define-public python-poetry-core
(package
(name "python-poetry-core")
--
2.39.2
- [bug#63139] [PATCH python 07/20] gnu: python-platformdirs: Update to 3.2.0., (continued)
- [bug#63139] [PATCH python 07/20] gnu: python-platformdirs: Update to 3.2.0., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 04/20] gnu: python-crashtest: Update to 0.4.1., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 08/20] gnu: python-filelock: Update to 3.12.0., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 01/20] gnu: Add python-installer., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 09/20] gnu: python-distlib: Update to 0.3.6., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 10/20] gnu: python-virtualenv: Update to 20.22.0., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 13/20] gnu: python-dulwich: Update to 0.21.3., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 11/20] gnu: python-pkginfo: Update to 1.9.6., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 12/20] gnu: python-jsonschema: Update to 4.17.3., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 15/20] gnu: poetry: Fix build., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 14/20] gnu: Update python-pypa-build to 1.0.0.,
John Kehayias <=
- [bug#63139] [PATCH python 18/20] gnu: python-fido2: Update to 1.1.1 and enable tests., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 16/20] gnu: Add python-poetry-plugin-export., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 17/20] gnu: python-pyscard: Update to 2.0.7., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 20/20] gnu: python-yubikey-manager: Update to 5.1.0 and enable tests., John Kehayias, 2023/04/28
- [bug#63139] [PATCH python 19/20] gnu: Add python-makefun., John Kehayias, 2023/04/28