[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/150: gnu: python-openpyxl: Fix timestamps before testing.
From: |
guix-commits |
Subject: |
21/150: gnu: python-openpyxl: Fix timestamps before testing. |
Date: |
Sun, 24 Apr 2022 05:12:17 -0400 (EDT) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit ac21290f46c2c2a100c09a2b745498d3c10405f3
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 d33f457dd5..567c4585b6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2378,9 +2378,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))
- 18/150: gnu: python-multivolumefile: Remove unused inputs., (continued)
- 18/150: gnu: python-multivolumefile: Remove unused inputs., guix-commits, 2022/04/24
- 20/150: gnu: gusb-minimal: Add explicit dependency on setuptools., guix-commits, 2022/04/24
- 30/150: gnu: python-tomlkit: Add missing build system input., guix-commits, 2022/04/24
- 36/150: gnu: python-apsw: Remove custom 'build phase., guix-commits, 2022/04/24
- 24/150: gnu: python-folium: Disable tests., guix-commits, 2022/04/24
- 12/150: gnu: python-charset-normalizer: Add missing input., guix-commits, 2022/04/24
- 32/150: gnu: python-eradicate: Disable missing tests., guix-commits, 2022/04/24
- 05/150: gnu: Use python2-toolchain-for-build instead of python-2., guix-commits, 2022/04/24
- 26/150: gnu: python-django-pipeline: Disable tests., guix-commits, 2022/04/24
- 15/150: gnu: python-file: Remove obsolete #:configure-flags., guix-commits, 2022/04/24
- 21/150: gnu: python-openpyxl: Fix timestamps before testing.,
guix-commits <=
- 56/150: gnu: python-lzo: Remove deprecated argument and add test input., guix-commits, 2022/04/24
- 54/150: gnu: Add python-u-msgpack., guix-commits, 2022/04/24
- 48/150: gnu: picard: Remove old build flag., guix-commits, 2022/04/24
- 89/150: gnu: python-pytest-httpbin: Disable tests., guix-commits, 2022/04/24
- 55/150: gnu: Add python-pytest-expect., guix-commits, 2022/04/24
- 81/150: gnu: python-setuptools-scm-git-archive: Disable tests., guix-commits, 2022/04/24
- 79/150: gnu: python-dnspython: Force poetry backend., guix-commits, 2022/04/24
- 108/150: gnu: python-argcomplete: Add missing test input., guix-commits, 2022/04/24
- 105/150: gnu: python-gevent: Override build backend., guix-commits, 2022/04/24
- 106/150: gnu: python-tables: Move flags to #:configure-flags., guix-commits, 2022/04/24