summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-28 19:40:18 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-20 01:06:37 +0000
commita8c7cfbd65356bedda59decefdc2dfd3e71735bf (patch)
treef395e10e38827137c39ba448e51c3938bbf3f906 /gnu
parent5483d44ca53024f3eee04e4ad8ca5200d221f800 (diff)
gnu: python-dateutil: Relax native-inputs requirements.
* gnu/packages/time.scm (python-dateutil)[arguments] <#:test-flags>: Improve style. <#:phases>: Add phase 'relax-pytest-cov-requirement. [native-inputs]: Remove python-pytest-cov, python-wheel. Change-Id: Id3c02340bb6ea416159cf00db42c9c506435fb20 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/time.scm22
1 files changed, 14 insertions, 8 deletions
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index 6b7ca75a759..9a1638dd80a 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -363,17 +363,23 @@ Pendulum instances.")
(build-system pyproject-build-system)
(arguments
(list
- #:test-flags '(list ;avoid freezegun dependency
- "--ignore=tests/test_utils.py"
- "--ignore=tests/test_rrule.py"
- ;; XXX: Fails to get timezone from /etc/localtime.
- "--ignore=tests/test_tz.py")))
+ #:test-flags
+ #~(list ;avoid freezegun dependency
+ "--ignore=tests/test_utils.py"
+ "--ignore=tests/test_rrule.py"
+ ;; XXX: Fails to get timezone from /etc/localtime.
+ "--ignore=tests/test_tz.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-pytest-cov-requirement
+ (lambda _
+ (substitute* "tests/conftest.py"
+ (("\\item.add_marker\\(pytest\\.mark\\.no_cover\\)")
+ "continue")))))))
(native-inputs
(list python-pytest
- python-pytest-cov
python-setuptools
- python-setuptools-scm
- python-wheel))
+ python-setuptools-scm))
(propagated-inputs
(list python-six))
(home-page "https://dateutil.readthedocs.io/en/stable/")