[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/28: gnu: python-pyopenssl: Fix test failure.
From: |
guix-commits |
Subject: |
03/28: gnu: python-pyopenssl: Fix test failure. |
Date: |
Wed, 8 Jan 2020 15:58:44 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 84f1e12b8b84acca1b3be7d41daacce28feb391d
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.
---
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 63d3be1..b9e3210 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 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>
@@ -448,7 +448,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
@@ -463,7 +466,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 core-updates updated (ba0e140 -> a82e6fa), guix-commits, 2020/01/08
- 01/28: Revert "gnu: poppler: Update to 0.83.0.", guix-commits, 2020/01/08
- 02/28: gnu: libfaketime: Fix failing test., guix-commits, 2020/01/08
- 08/28: gnu: sbcl-cffi: Update to 0.20.1., guix-commits, 2020/01/08
- 10/28: gnu: lcms: Do not build static library., guix-commits, 2020/01/08
- 09/28: gnu: libfreehand: Fix build with ICU 65., guix-commits, 2020/01/08
- 11/28: gnu: gd: Do not build static library., guix-commits, 2020/01/08
- 07/28: gnu: libsm: Do not build static library., guix-commits, 2020/01/08
- 12/28: gnu: libXpm: Gettext is a native input., guix-commits, 2020/01/08
- 05/28: gnu: dconf: Fix build failure with Meson 0.52., guix-commits, 2020/01/08
- 03/28: gnu: python-pyopenssl: Fix test failure.,
guix-commits <=
- 06/28: gnu: network-manager: Fix build with glibc 2.30., guix-commits, 2020/01/08
- 04/28: gnu: WebkitGTK: Fix build failure with ICU 65., guix-commits, 2020/01/08
- 15/28: gnu: cURL: Update to 7.68.0., guix-commits, 2020/01/08
- 13/28: gnu: libXpm: Update to 3.5.13., guix-commits, 2020/01/08
- 14/28: gnu: CMake: Update to 3.16.2., guix-commits, 2020/01/08
- 18/28: gnu: libarchive: Update to 3.4.1., guix-commits, 2020/01/08
- 21/28: gnu: RHash: Do not use unstable source tarball., guix-commits, 2020/01/08
- 20/28: gnu: meson: Update to 0.53.0., guix-commits, 2020/01/08
- 19/28: gnu: libjpeg-turbo: Update to 2.0.4., guix-commits, 2020/01/08
- 24/28: gnu: libpaper: Do not build the static library., guix-commits, 2020/01/08