gnu: python-lit: Honor the #:tests? flag.

* gnu/packages/check.scm (python-lit)[arguments]: Honor the #:tests?
flag in the custom 'check phase.
This commit is contained in:
Efraim Flashner 2023-04-10 16:50:15 +03:00
parent 970247e9f5
commit 1be53ad197
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2360,8 +2360,9 @@ (define-public python-lit
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "python" "lit.py" "tests"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "lit.py" "tests")))))))
(native-inputs
(list llvm-14))
(home-page "https://llvm.org/")