[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/46: gnu: python-pyopenssl: Fix test failure.
From: |
guix-commits |
Subject: |
01/46: gnu: python-pyopenssl: Fix test failure. |
Date: |
Fri, 14 Feb 2020 12:40:54 -0500 (EST) |
mbakke pushed a commit to branch staging
in repository guix.
commit 55e51b6615230b90f292d6b09b739e4fadbeef3e
Author: Marius Bakke <address@hidden>
AuthorDate: Wed Jan 8 20:58:19 2020 +0100
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)
---
gnu/packages/python-crypto.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 7117270..f355406 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2015 Eric Dvorsak <address@hidden>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner
<address@hidden>
;;; Copyright © 2015, 2016, 2017, 2019 Leo Famulari <address@hidden>
-;;; Copyright © 2016, 2017 Marius Bakke <address@hidden>
+;;; Copyright © 2016, 2017, 2020 Marius Bakke <address@hidden>
;;; Copyright © 2017 Ben Sturmfels <address@hidden>
;;; Copyright © 2016 Sou Bunnbu <address@hidden>
;;; Copyright © 2015 Cyril Roelandt <address@hidden>
@@ -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")
- branch staging created (now 5edad6c), guix-commits, 2020/02/14
- 02/46: gnu: eudev: Do not build the static libraries., guix-commits, 2020/02/14
- 05/46: gnu: libaio: Update to 0.3.112., guix-commits, 2020/02/14
- 01/46: gnu: python-pyopenssl: Fix test failure.,
guix-commits <=
- 04/46: gnu: nspr: Do not build the static library., guix-commits, 2020/02/14
- 07/46: gnu: libffcall: Do not build the static libraries., guix-commits, 2020/02/14
- 11/46: gnu: libtirpc: Update to 1.2.5., guix-commits, 2020/02/14
- 03/46: gnu: nss: Remove obsolete patch., guix-commits, 2020/02/14
- 17/46: gnu: perl-ipc-system-simple: Update to 1.26., guix-commits, 2020/02/14
- 06/46: gnu: libaio: Do not install the static library., guix-commits, 2020/02/14
- 08/46: gnu: libffcall: Update to 2.2., guix-commits, 2020/02/14
- 09/46: gnu: libevdev: Do not build the static library., guix-commits, 2020/02/14
- 10/46: gnu: libevdev: Update to 1.8.0., guix-commits, 2020/02/14
- 12/46: gnu: perl-test-simple: Update to 1.302171., guix-commits, 2020/02/14