mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
gnu: python-hy: Honor #:tests? flag.
* gnu/packages/python-xyz.scm (python-hy)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
9e6b0775f4
commit
c1c36f1351
1 changed files with 7 additions and 6 deletions
|
@ -13022,12 +13022,13 @@ (define-public python-hy
|
|||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(invoke "python" "-m" "pytest" "-k"
|
||||
(string-append ; skip some failed tests
|
||||
"not test_bin_hy_sys_executable"
|
||||
" and not test_bin_hy_circular_macro_require"
|
||||
" and not test_macro_from_module")))))))
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "python" "-m" "pytest" "-k"
|
||||
(string-append ; skip some failed tests
|
||||
"not test_bin_hy_sys_executable"
|
||||
" and not test_bin_hy_circular_macro_require"
|
||||
" and not test_macro_from_module"))))))))
|
||||
(native-inputs
|
||||
(list python-pytest))
|
||||
(propagated-inputs
|
||||
|
|
Loading…
Reference in a new issue