mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-argcomplete: Fix tests.
* gnu/packages/python-xyz.scm (python-argcomplete) [arguments] <test-backend>: Use custom. <test-flags>: Move option here from custom 'check phase.. <phases>: Use default 'check; add disable-pip-tests.. [native-inputs]: Remove python-coverage, python-mypy, and python-wheel. Change-Id: Ica763b449ebef64000181fe192cad691be39db73
This commit is contained in:
parent
503af0d4d5
commit
3e9afab364
1 changed files with 10 additions and 13 deletions
|
@ -25355,23 +25355,20 @@ JPEG2000 and GIF files in pure Python.")
|
|||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:test-backend #~'custom
|
||||
#:test-flags #~(list "test/test.py" "-v")
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
;; pip: command not found
|
||||
(substitute* "test/test.py"
|
||||
(("def test_console_script")
|
||||
"def __disable_test_console_script"))
|
||||
(invoke "python3" "./test/test.py" "-v")))))))
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'check 'disable-pip-tests
|
||||
(lambda _
|
||||
;; pip: command not found
|
||||
(substitute* "test/test.py"
|
||||
(("def test_console_script")
|
||||
"def __disable_test_console_script")))))))
|
||||
(native-inputs
|
||||
(list python-coverage
|
||||
python-hatch-vcs
|
||||
(list python-hatch-vcs
|
||||
python-hatchling
|
||||
python-mypy
|
||||
python-pexpect
|
||||
python-wheel
|
||||
tcsh
|
||||
fish
|
||||
bash ;full Bash for 'test_file_completion'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue