gnu: python-helpdev: Enable tests.

* gnu/packages/python-xyz.scm (python-helpdev)[arguments]: Replace check
phase.
[native-inputs]: Add python-pytest.
This commit is contained in:
Efraim Flashner 2020-12-28 12:07:01 +02:00
parent 8a2a5ad696
commit 9779d08982
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -23264,8 +23264,19 @@ (define-public python-helpdev
(base32
"0gfvj28i82va7c264jl2p4cdsl3lpf9fpb9cyjnis55crfdafqmv"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "tests"))
#t)))))
(propagated-inputs
`(("python-importlib-metadata" ,python-importlib-metadata)))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://gitlab.com/dpizetta/helpdev")
(synopsis
"Extract information about the Python environment easily")