mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-green: Fix tests.
* gnu/packages/python-check.scm (python-green): Rework custom phases. [arguments] <test-flags>: Add portion of tests. [phases]{check}: Run tests with installed "green" command. [native-inputs]: Remove python-mypy, python-testtools, and python-wheel. Change-Id: Ifaf4507825ecfdd924abaa391db1c876500735ca
This commit is contained in:
parent
6fccf2d56c
commit
362012be5d
1 changed files with 8 additions and 7 deletions
|
@ -832,18 +832,19 @@ Python.")
|
|||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-flags #~(list "-vr" "green")
|
||||
#:test-flags
|
||||
#~(list "-tvvv"
|
||||
"green.test.test_version"
|
||||
"green.test.test_cmdline")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||
(when tests?
|
||||
(apply invoke "python" "-m" "green" test-flags)))))))
|
||||
(setenv "PATH" (string-append #$output "/bin:" (getenv "PATH")))
|
||||
(apply invoke "green" test-flags)))))))
|
||||
(native-inputs
|
||||
(list python-mypy
|
||||
python-setuptools
|
||||
python-testtools
|
||||
python-wheel))
|
||||
(list python-setuptools))
|
||||
(propagated-inputs
|
||||
(list python-colorama
|
||||
python-coverage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue