gnu: python-green: Adjust inputs.

* gnu/packages/python-check.scm (python-green):
[arguments]<phases>: Add custom 'check.
[native-inputs]: Remove python-black and python-django; add
python-setuptools and python-wheel.

Change-Id: I3fd3aa1d3e73956d08b1691d6a1d43b6d8d2d019
This commit is contained in:
Sharlatan Hellseher 2024-11-27 00:18:35 +00:00
parent 8e7c4d8df9
commit 4fc85e9a6b
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -3167,13 +3167,20 @@ unused.")
(sha256
(base32 "1cd62nbn5dvlpnsyplp6cb24wd230san8dpm6pnl99n2kwzpq1m4"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags #~(list "-vr" "green")
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests?
(apply invoke "python" "-m" "green" test-flags)))))))
(native-inputs
(list python-black
python-django
python-mypy
python-testtools))
;; The python-coverage dependency appears both in requirements.txt and
;; requirements-dev.txt.
(list python-mypy
python-setuptools
python-testtools
python-wheel))
(propagated-inputs
(list python-colorama
python-coverage