[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/103: gnu: python-openpyxl: Fix timestamps before testing.
From: |
guix-commits |
Subject: |
18/103: gnu: python-openpyxl: Fix timestamps before testing. |
Date: |
Wed, 5 Jan 2022 09:44:29 -0500 (EST) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 385b567f70a784257ddedca96ce27ba0c874b774
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sat Nov 27 17:22:50 2021 +0100
gnu: python-openpyxl: Fix timestamps before testing.
The tests use ZIP files, which cannot handle timestamps before 1980. Reset
them. The custom 'check phase is not required any more.
* gnu/packages/python-xyz.scm (python-openpyxl)[#:phases]: Remove 'check,
add 'set-mtime.
---
gnu/packages/python-xyz.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a19939eb84..6e9925c8f0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2316,9 +2316,13 @@ of @code{xmlfile}.")
(build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
- (replace 'check
+ (add-before 'check 'set-mtime
(lambda _
- (invoke "pytest"))))))
+ (let ((early-1980 315619200)) ; 1980-01-02 UTC
+ (for-each
+ (lambda (file)
+ (utime file early-1980 early-1980))
+ (find-files "."))))))))
(native-inputs
;; For the test suite.
(list python-lxml python-pillow python-pytest))
- 06/103: gnu: Add python-tomli-w., (continued)
- 06/103: gnu: Add python-tomli-w., guix-commits, 2022/01/05
- 02/103: python-build-system: Use PEP 517-compatible builds., guix-commits, 2022/01/05
- 29/103: gnu: python-eradicate: Disable missing tests., guix-commits, 2022/01/05
- 38/103: gnu: python-pytest-cache: Disable tests., guix-commits, 2022/01/05
- 47/103: gnu: python-pytest-benchmark: Disable tests., guix-commits, 2022/01/05
- 33/103: gnu: python-apsw: Remove custom 'build phase., guix-commits, 2022/01/05
- 48/103: gnu: python-entrypoint2: Remove obsolete test target., guix-commits, 2022/01/05
- 15/103: gnu: python-multivolumefile: Remove unused inputs., guix-commits, 2022/01/05
- 23/103: gnu: python-django-pipeline: Disable tests., guix-commits, 2022/01/05
- 10/103: gnu: python-confuse: Add missing test inputs., guix-commits, 2022/01/05
- 18/103: gnu: python-openpyxl: Fix timestamps before testing.,
guix-commits <=
- 16/103: gnu: python-ppmd-cffi: Remove unused inputs., guix-commits, 2022/01/05
- 25/103: gnu: python-lockfile: Add missing nosetests., guix-commits, 2022/01/05
- 27/103: gnu: python-tomlkit: Add missing build system input., guix-commits, 2022/01/05
- 56/103: gnu: python-rauth: Remove obsolete argument., guix-commits, 2022/01/05
- 64/103: gnu: python-pikepdf: Remove unused input., guix-commits, 2022/01/05
- 71/103: gnu: Add python-fs., guix-commits, 2022/01/05
- 78/103: gnu: python-apipkg: Disable tests., guix-commits, 2022/01/05
- 76/103: gnu: python-pytest-catchlog: Disable tests., guix-commits, 2022/01/05
- 87/103: gnu: python-flufl-testing: Disable tests., guix-commits, 2022/01/05
- 81/103: gnu: python-tqdm: Skip failing test., guix-commits, 2022/01/05