gnu: python-pytest-parawtf: Switch to pyproject.

* gnu/packages/python-check.scm (python-pytest-parawtf):
[source, description]: Run guix style.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Replace it with...
<#:test-flags>: ...them.
[native-inputs]: Add python-setuptools, python-wheel.

Change-Id: Id47b094ac260f4623d2cf85c4cc5c646d992be04
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-08-25 20:12:35 +02:00 committed by Sharlatan Hellseher
parent df3d8bdd9b
commit 1bba49c77e
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -2693,28 +2693,25 @@ of tests run in a specific order.")
(package (package
(name "python-pytest-parawtf") (name "python-pytest-parawtf")
(version "1.0.2") (version "1.0.2")
(source (origin (source
(method url-fetch) (origin
(uri (pypi-uri "pytest-parawtf" version)) (method url-fetch)
(sha256 (uri (pypi-uri "pytest-parawtf" version))
(base32 (sha256
"08s86hy58lvrd90cnayzydvac4slaflj0ph9yknakcc42anrm023")))) (base32 "08s86hy58lvrd90cnayzydvac4slaflj0ph9yknakcc42anrm023"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:phases #:test-flags
#~(modify-phases %standard-phases ;; https://github.com/flub/pytest-parawtf/issues/1
(replace 'check #~(list "-k" "not test_mark")))
(lambda* (#:key tests? #:allow-other-keys) (native-inputs (list python-pytest python-setuptools python-wheel))
(when tests?
;; https://github.com/flub/pytest-parawtf/issues/1
(invoke "pytest" "-k" "not test_mark")))))))
(propagated-inputs (list python-pytest)) (propagated-inputs (list python-pytest))
(home-page "https://github.com/flub/pytest-parawtf/") (home-page "https://github.com/flub/pytest-parawtf/")
(synopsis "Finally spell paramete?ri[sz]e correctly") (synopsis "Finally spell paramete?ri[sz]e correctly")
(description (description
"@code{python-pytest} uses one of four different spellings of "Pytest uses one of four different spellings of parametrize. This plugin
parametrize. This plugin allows you to use all four.") allows you to use all four.")
(license license:expat))) (license license:expat)))
(define-public python-pytest-pycodestyle (define-public python-pytest-pycodestyle