diff options
author | Marius Bakke <mbakke@fastmail.com> | 2016-12-16 14:32:34 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2016-12-16 14:36:15 +0100 |
commit | 7c6bf660d8a455090f4c140c5b2849f1b58f2fe3 (patch) | |
tree | 5e9f28787d436ae8927c3c0c71f07aa3f50cdd78 /gnu/packages/python.scm | |
parent | 329553482d0632e35b3c0028548b004f8cb32aec (diff) | |
download | guix-7c6bf660d8a455090f4c140c5b2849f1b58f2fe3.tar guix-7c6bf660d8a455090f4c140c5b2849f1b58f2fe3.tar.gz |
gnu: python-pyopenssl: Enable tests.
* gnu/packages/patches/python-pyopenssl-skip-network-test.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/python.scm (python-pyopenssl, python2-pyopenssl)[source]: Use it.
[arguments]: Replace 'check' with custom phase.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r-- | gnu/packages/python.scm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index fece7cdb75..dce46cec34 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6672,11 +6672,18 @@ message digests and key derivation functions.") (uri (pypi-uri "pyOpenSSL" version)) (sha256 (base32 - "0vji4yrfshs15xpczbhzhasnjrwcarsqg87n98ixnyafnyxs6ybp")))) + "0vji4yrfshs15xpczbhzhasnjrwcarsqg87n98ixnyafnyxs6ybp")) + (patches + (search-patches "python-pyopenssl-skip-network-test.patch")))) (build-system python-build-system) (arguments - ;; FIXME: Some tests fail with "NameError: name 'long' is not defined". - '(#:tests? #f)) + '(#:phases + (modify-phases %standard-phases + (delete 'check) + (add-after 'install 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (zero? (system* "py.test" "-v"))))))) (propagated-inputs `(("python-cryptography" ,python-cryptography) ("python-six" ,python-six))) |