gnu: python-typed-ast: Make the 'check' phase respect #:tests?.

* gnu/packages/python-xyz.scm (python-typed-ast) [arguments]: Make the 'check'
phase respect #:tests?.

Change-Id: I6817270eca0c19bc786aa77460759f32d47a2948
This commit is contained in:
jgart 2024-07-11 16:12:03 -05:00
parent 7e9a6836cd
commit b3784c6326
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -26317,8 +26317,9 @@ (define-public python-typed-ast
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv")))))))
(native-inputs (list python-pytest))
(home-page "https://github.com/python/typed_ast")
(synopsis "Fork of Python @code{ast} modules with type comment support")