gnu: python-identify: Honor #:tests in check phase.

* gnu/packages/python-xyz.scm (python-identify)[arguments]: Honor tests?.
This commit is contained in:
Efraim Flashner 2021-08-09 20:09:08 +03:00
parent 81698e5099
commit 6a29b83423
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -20751,8 +20751,9 @@ (define-public python-identify
;; system-error "utime" "~A" ("No such file or directory")
(delete 'ensure-no-mtimes-pre-1980)
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs
`(("python-coverage" ,python-coverage)
("python-pytest" ,python-pytest)))