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:
Vinicius Monego 2021-12-28 19:33:35 +00:00 committed by Nicolas Goaziou
parent 9e6b0775f4
commit c1c36f1351
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -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