diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-28 19:40:18 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-11-20 01:06:37 +0000 |
| commit | a8c7cfbd65356bedda59decefdc2dfd3e71735bf (patch) | |
| tree | f395e10e38827137c39ba448e51c3938bbf3f906 /gnu/packages/time.scm | |
| parent | 5483d44ca53024f3eee04e4ad8ca5200d221f800 (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/packages/time.scm')
| -rw-r--r-- | gnu/packages/time.scm | 22 |
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.") | |||
| 363 | (build-system pyproject-build-system) | 363 | (build-system pyproject-build-system) |
| 364 | (arguments | 364 | (arguments |
| 365 | (list | 365 | (list |
| 366 | #:test-flags '(list ;avoid freezegun dependency | 366 | #:test-flags |
| 367 | "--ignore=tests/test_utils.py" | 367 | #~(list ;avoid freezegun dependency |
| 368 | "--ignore=tests/test_rrule.py" | 368 | "--ignore=tests/test_utils.py" |
| 369 | ;; XXX: Fails to get timezone from /etc/localtime. | 369 | "--ignore=tests/test_rrule.py" |
| 370 | "--ignore=tests/test_tz.py"))) | 370 | ;; XXX: Fails to get timezone from /etc/localtime. |
| 371 | "--ignore=tests/test_tz.py") | ||
| 372 | #:phases | ||
| 373 | #~(modify-phases %standard-phases | ||
| 374 | (add-after 'unpack 'relax-pytest-cov-requirement | ||
| 375 | (lambda _ | ||
| 376 | (substitute* "tests/conftest.py" | ||
| 377 | (("\\item.add_marker\\(pytest\\.mark\\.no_cover\\)") | ||
| 378 | "continue"))))))) | ||
| 371 | (native-inputs | 379 | (native-inputs |
| 372 | (list python-pytest | 380 | (list python-pytest |
| 373 | python-pytest-cov | ||
| 374 | python-setuptools | 381 | python-setuptools |
| 375 | python-setuptools-scm | 382 | python-setuptools-scm)) |
| 376 | python-wheel)) | ||
| 377 | (propagated-inputs | 383 | (propagated-inputs |
| 378 | (list python-six)) | 384 | (list python-six)) |
| 379 | (home-page "https://dateutil.readthedocs.io/en/stable/") | 385 | (home-page "https://dateutil.readthedocs.io/en/stable/") |
