~ruther/guix-local

b31de4d4d7ec5199c4f5923a96a3e9cced8c2507 — Nicolas Graves 10 months ago 7b1f7c7
gnu: python-args: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-args):
[arguments]<#:phases>: Remove 'check phase replacement.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools, python-wheel.

Change-Id: Ia25eae40725adadce182cbdb5e874dd7352e4d35
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 3 insertions(+), 7 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +3 -7
@@ 20136,18 20136,14 @@ minimal and fast API targeting the following uses:
                (sha256
                 (base32
                  "1zfxpbp9vldqdrjmd0c6y3wisl35mx5v8zlyp3nhwpy1730wrc9j"))))
      (build-system python-build-system)
      (build-system pyproject-build-system)
      (arguments
       `(#:phases (modify-phases %standard-phases
                    (add-after 'unpack 'patch-args.py
                      (lambda _
                        (substitute* "args.py"
                          (("basestring") "str"))))
                    (replace 'check
                      (lambda* (#:key tests? #:allow-other-keys)
                        (when tests?
                          (invoke "nosetests" "-v")))))))
      (native-inputs (list python-nose))
                          (("basestring") "str")))))))
      (native-inputs (list python-nose python-setuptools python-wheel))
      (synopsis "Command-line argument parser")
      (description
       "This library provides a Python module to parse command-line arguments.")