[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70855] [PATCH 30/92] gnu: python-dateutil: Move to pyproject-build-
From: |
Nicolas Graves |
Subject: |
[bug#70855] [PATCH 30/92] gnu: python-dateutil: Move to pyproject-build-system. |
Date: |
Fri, 10 May 2024 00:53:25 +0200 |
* gnu/packages/time.scm (python-dateutil): Improve package style.
[build-system]: Move to pyproject-build-system.
[arguments]: Use <#:test-flags> instead of check phase replacement.
Change-Id: I252fbe47f04ba6a2fbcc497565cbf6e352f9d06c
---
gnu/packages/time.scm | 23 ++++++++---------------
1 file changed, 8 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index 96fe9f561a0..552ac346c4a 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -242,22 +242,15 @@ (define-public python-dateutil
(uri (pypi-uri "python-dateutil" version))
(patches (search-patches "python-dateutil-pytest-compat.patch"))
(sha256
- (base32
- "11iy7m4bp2lgfkcl0r6xzf34bvk7ppjmsyn2ygfikbi72v6cl8q1"))))
- (build-system python-build-system)
+ (base32 "11iy7m4bp2lgfkcl0r6xzf34bvk7ppjmsyn2ygfikbi72v6cl8q1"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda _
- ;; Delete tests that depend on "freezegun" to avoid a
- ;; circular dependency.
- (delete-file "dateutil/test/test_utils.py")
- (delete-file "dateutil/test/test_rrule.py")
-
- ;; XXX: Fails to get timezone from /etc/localtime.
- (delete-file "dateutil/test/test_tz.py")
-
- (invoke "pytest" "-vv"))))))
+ (list
+ #:test-flags '(list ; avoid freezegun dependency
+ "--ignore=dateutil/test/test_utils.py"
+ "--ignore=dateutil/test/test_rrule.py"
+ ;; XXX: Fails to get timezone from /etc/localtime.
+ "--ignore=dateutil/test/test_tz.py")))
(native-inputs
(list python-pytest python-pytest-cov python-setuptools-scm))
(propagated-inputs
--
2.41.0
- [bug#70855] [PATCH 10/92] gnu: vdirsyncer: Move to pyproject-build-system and enable tests., (continued)
- [bug#70855] [PATCH 10/92] gnu: vdirsyncer: Move to pyproject-build-system and enable tests., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 17/92] gnu: qtile: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 09/92] gnu: python-aionotify: Update to 0.3.0., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 12/92] gnu: python-docker-pycreds: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 21/92] gnu: conda: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 13/92] gnu: Add xcffibgen., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 05/92] gnu: python-codespell: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 06/92] gnu: python-mutagen: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 08/92] gnu: python-zope-i18nmessageid: Update to 5.1.1., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 18/92] gnu: sshuttle: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 30/92] gnu: python-dateutil: Move to pyproject-build-system.,
Nicolas Graves <=
- [bug#70855] [PATCH 29/92] gnu: python-pypujs: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 24/92] gnu: python-scikit-rf: Fix tests., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 19/92] gnu: python-apiron: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 32/92] gnu: python-asdf-astropy: Fix build., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 11/92] gnu: python-django-localflavor: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 31/92] gnu: python-nbval: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 33/92] gnu: python-pytest-runner: Improve package style., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 38/92] gnu: behave: Move to pyproject-build-system., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 34/92] gnu: gunicorn: Update to 21.2.0., Nicolas Graves, 2024/05/09
- [bug#70855] [PATCH 35/92] gnu: python-unidecode: Update to 1.3.8., Nicolas Graves, 2024/05/09