From ed0e8c7cc92df8deec15edd097c03a82cdc2e58b Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 14 Oct 2020 14:56:40 +0200 Subject: gnu: python-pgpy: Run the tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-crypto.scm (python-pgpy)[arguments]: Replace the default ‘check’ phase. [native-inputs]: Add python-pytest. --- gnu/packages/python-crypto.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index a86151b485..81a5c213da 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -1545,9 +1545,17 @@ signatures.") (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))) -- cgit v1.2.3