diff options
author | Marius Bakke <[email protected]> | 2020-01-08 20:58:19 +0100 |
---|---|---|
committer | Marius Bakke <[email protected]> | 2020-02-14 18:33:54 +0100 |
commit | 55e51b6615230b90f292d6b09b739e4fadbeef3e (patch) | |
tree | e9147eef17755bf2932438a815091240fc9db22c /gnu/packages/python-crypto.scm | |
parent | 64fc4f3705423c83c680a95d8dea81a39fce9a70 (diff) |
gnu: python-pyopenssl: Fix test failure.
* gnu/packages/python-crypto.scm (python-pyopenssl)[native-inputs]: Add LIBFAKETIME.
[arguments]: Use it to run tests with a fixed date.
(cherry picked from commit 84f1e12b8b84acca1b3be7d41daacce28feb391d)
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r-- | gnu/packages/python-crypto.scm | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 71172701ac..f35540686c 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2015 Eric Dvorsak <[email protected]> ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <[email protected]> ;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <[email protected]> -;;; Copyright © 2016, 2017 Marius Bakke <[email protected]> +;;; Copyright © 2016, 2017, 2020 Marius Bakke <[email protected]> ;;; Copyright © 2017 Ben Sturmfels <[email protected]> ;;; Copyright © 2016 Sou Bunnbu <[email protected]> ;;; Copyright © 2015 Cyril Roelandt <[email protected]> @@ -488,7 +488,10 @@ message digests and key derivation functions.") (add-after 'install 'check (lambda* (#:key inputs outputs #:allow-other-keys) (add-installed-pythonpath inputs outputs) - (invoke "py.test" "-v" "-k" + ;; PyOpenSSL runs tests against a certificate with a fixed + ;; expiry time. To ensure successful builds in the future, + ;; set the time to roughly the release date. + (invoke "faketime" "2019-01-01" "py.test" "-v" "-k" (string-append ;; This test tries to look up certificates from ;; the compiled-in default path in OpenSSL, which @@ -503,7 +506,8 @@ message digests and key derivation functions.") (inputs `(("openssl" ,openssl))) (native-inputs - `(("python-flaky" ,python-flaky) + `(("libfaketime" ,libfaketime) + ("python-flaky" ,python-flaky) ("python-pretend" ,python-pretend) ("python-pytest" ,python-pytest))) (home-page "https://github.com/pyca/pyopenssl") |