[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
69/103: gnu: python-pep517: Reset timestamps and add missing build input
From: |
guix-commits |
Subject: |
69/103: gnu: python-pep517: Reset timestamps and add missing build input. |
Date: |
Wed, 5 Jan 2022 09:44:37 -0500 (EST) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit cb7202fc77c4f6352ce4febcab1aabfa70c7b348
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Dec 31 11:48:06 2021 +0100
gnu: python-pep517: Reset timestamps and add missing build input.
* gnu/packages/python-xyz.scm (python-pep517)[arguments]: Add (ice-9
ftw) to #:modules, add phase 'set-source-file-times-to-1980 copied from
(gnu packages python), remove pytest invokation from 'unpack and rename to
'remove-failing-tests.
[native-inputs]: Add python-flit-core.
---
gnu/packages/python-xyz.scm | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e8ab399be4..ee741e3bfe 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9773,18 +9773,26 @@ plugin for flake8 to check PEP-8 naming conventions.")
(inherit python-pep517-bootstrap)
(name "python-pep517")
(arguments
- '(#:phases
+ '(#:modules ((ice-9 ftw)
+ (srfi srfi-1)
+ (srfi srfi-26)
+ (guix build utils)
+ (guix build python-build-system))
+ #:phases
(modify-phases %standard-phases
- (replace 'check
+ (add-after 'unpack 'remove-failing-tests
(lambda* (#:key tests? #:allow-other-keys)
(delete-file "pytest.ini")
;; This test tries to connect to the internet
- (delete-file "tests/test_meta.py")
- (if tests?
- (invoke "pytest")
- #t))))))
+ (delete-file "tests/test_meta.py")))
+ (add-after 'unpack 'set-source-file-times-to-1980
+ (lambda _
+ (let ((circa-1980 (* 10 366 24 60 60)))
+ (ftw "." (lambda (file stat flag)
+ (utime file circa-1980 circa-1980)
+ #t))))))))
(native-inputs
- (list python-mock python-pytest python-testpath))
+ (list python-mock python-pytest python-testpath python-flit-core))
(properties `((python2-variant . ,(delay python2-pep517))))))
;; Skip the tests so we don't create a cyclical dependency with pytest.
- 43/103: gnu: openmolar: Remove old build flag., (continued)
- 43/103: gnu: openmolar: Remove old build flag., guix-commits, 2022/01/05
- 42/103: gnu: epour: Remove old build flag., guix-commits, 2022/01/05
- 49/103: gnu: python-pytest-xvfb: Remove obsolete test target., guix-commits, 2022/01/05
- 52/103: gnu: Add python-pytest-expect., guix-commits, 2022/01/05
- 53/103: gnu: python-lzo: Remove deprecated argument and add test input., guix-commits, 2022/01/05
- 54/103: gnu: python-argon2-cffi: Do not override 'build., guix-commits, 2022/01/05
- 58/103: gnu: python-httptools: Disable tests., guix-commits, 2022/01/05
- 59/103: gnu: python-venusian: Remove obsolete argument., guix-commits, 2022/01/05
- 65/103: gnu: python-backcall: Add missing build inputs., guix-commits, 2022/01/05
- 67/103: gnu: python-pep8: Disable tests., guix-commits, 2022/01/05
- 69/103: gnu: python-pep517: Reset timestamps and add missing build input.,
guix-commits <=
- 103/103: tests: Remove obsolete flag and import missing module., guix-commits, 2022/01/05
- 70/103: gnu: Add python-pyftpdlib., guix-commits, 2022/01/05
- 72/103: gnu: python-fonttools: Fix tests and add missing inputs., guix-commits, 2022/01/05
- 73/103: gnu: python-curio: Disable failing tests., guix-commits, 2022/01/05
- 75/103: gnu: python-bleach: Selectively disable tests., guix-commits, 2022/01/05
- 80/103: gnu: python-isort: Remove custom build phases., guix-commits, 2022/01/05
- 79/103: gnu: python-dnspython: Force poetry backend., guix-commits, 2022/01/05
- 91/103: dirty: curio, guix-commits, 2022/01/05
- 90/103: gnu: python-locket: Add missing test input., guix-commits, 2022/01/05
- 86/103: gnu: python-eliot: Remove redundant input., guix-commits, 2022/01/05