lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit a634bd8f2b4bb4d86c20b351147870e87ae98e64
Author: Lars-Dominik Braun <[email protected]>
AuthorDate: Sat Dec 4 08:58:01 2021 +0100
gnu: python-pypa-build: Replace toml with tomli.
…which is preferred by upstream.
* gnu/packages/python-build.scm (python-pypa-build)[arguments]: Remove
custom #:phases.
[propagated-inputs]: Move…
[inputs]: …here and replace python-toml with python-tomli.
---
gnu/packages/python-build.scm | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index 427fbe52bb..83d34f52e1 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -518,18 +518,11 @@ information.")
"17xqija27x4my1yrnk6q2vwln60r39g2dhby9zg2l99qjgbdrahs"))))
(build-system python-build-system)
(arguments
- `(#:tests? #f ;to tests in the PyPI release
- #:phases (modify-phases %standard-phases
- (add-after 'unpack 'use-toml-instead-of-tomli
- ;; Using toml instead of tomli eases bootstrapping.
- (lambda _
- (substitute* "setup.cfg"
- (("tomli>=.*")
- "toml\n")))))))
- (propagated-inputs
- `(("python-packaging" ,python-packaging-bootstrap)
- ("python-pep517", python-pep517-bootstrap)
- ("python-toml" ,python-toml)))
+ `(#:tests? #f))
+ (inputs
+ `(("python-pep517", python-pep517-bootstrap)
+ ("python-tomli" ,python-tomli)
+ ("python-packaging" ,python-packaging-bootstrap)))
(home-page "https://pypa-build.readthedocs.io/en/latest/")
(synopsis "Simple Python PEP 517 package builder")
(description "The @command{build} command invokes the PEP 517 hooks to