diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-23 08:33:50 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:56 +0100 |
| commit | 362012be5d8b0d82b1de7817c7f9cc19ccb2a847 (patch) | |
| tree | f1844e72bf1d163e8276ee2d2a89364006d9bb83 /gnu/packages/python-check.scm | |
| parent | 6fccf2d56c42b16a86e54d4212974a250ce37388 (diff) | |
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
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 990ee1cf1e..f06baf96fa 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -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 |
