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>
This commit is contained in:
Nicolas Graves 2025-07-22 01:21:52 +02:00 committed by Sharlatan Hellseher
parent 7b1f7c7e8c
commit b31de4d4d7
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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.")