~ruther/guix-local

959d1674841e2ae618ae0622af6f2729d65b11bb — Sharlatan Hellseher 8 months ago 6562b22
gnu: python-pypa-build: Update to 0.9.0

* gnu/packages/python-build.scm (python-pypa-build): Update to 0.9.0.
  [build-system]: Use pyproject.
  [arguments] <phases>: Remove 'use-toml-instead-of-tomli.
  [native-inputs]: Add python-setuptools.

Change-Id: Id1f9fea2b4d933fdf5ade8d8d5888345a1ae7b40
1 files changed, 15 insertions(+), 20 deletions(-)

M gnu/packages/python-build.scm
M gnu/packages/python-build.scm => gnu/packages/python-build.scm +15 -20
@@ 500,27 500,22 @@ information.")
(define-public python-pypa-build
  (package
    (name "python-pypa-build")
    (version "0.7.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "build" version))
              (sha256
               (base32
                "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")))))))
    ;; Newer version needs more inputs, consider to move to python-xyz.
    (version "0.9.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "build" version))
       (sha256
        (base32 "0g5w28ban6k9qywqwdqiqms3crg75rsvfphl4f4qkg8wi57741qs"))))
    (build-system pyproject-build-system)
    (arguments `(#:tests? #f))         ;disabled to avoid extra dependencies
    (native-inputs
     (list python-setuptools))
    (propagated-inputs
     `(("python-packaging" ,python-packaging-bootstrap)
       ("python-pep517", python-pep517-bootstrap)
       ("python-toml" ,python-toml)))
     (list python-packaging-bootstrap
           python-pep517-bootstrap
           python-toml))
    (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