gnu: python-pgpy: Run the tests.

* gnu/packages/python-crypto.scm (python-pgpy)[arguments]: Replace the
default ‘check’ phase.
[native-inputs]: Add python-pytest.
This commit is contained in:
Tobias Geerinckx-Rice 2020-10-14 14:56:40 +02:00
parent 642647ae93
commit ed0e8c7cc9
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1545,9 +1545,17 @@ (define-public python-pgpy
(sha256
(base32 "11rrq15gmn6qbahli7czflfcngjl7zyybjlvk732my6axnf2d754"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(native-inputs
`(("python-cryptography" ,python-cryptography)
("python-pyasn1" ,python-pyasn1)
("python-pytest" ,python-pytest)
("python-singledispatch" ,python-singledispatch)
("python-six" ,python-six)
("python-wheel" ,python-wheel)))