guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 6ba900220725466e733ee651646dffca366f9000
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Aug 9 12:42:09 2025 +0100
gnu: python-pyrfc3339: Update to 2.0.1.
* gnu/packages/time.scm (python-pyrfc3339): Update to 2.0.1.
[source]: Switch to git-fetch providing tests.
[build-system]: Use pyproject.
[arguments] <phases>: Add 'pre-check.
[propagated-inputs]: Remove python-pytz.
[native-inputs]: Remove python-nose; add python-pytest,
python-setuptools, and tzdata-for-tests.
Change-Id: I72c0fff1747b9c3bd806180325a64853be545f31
---
gnu/packages/time.scm | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index 4aff688b32..2258cf13af 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -636,19 +636,30 @@ value (in fractional seconds) of a clock which never goes
backwards.")
(define-public python-pyrfc3339
(package
(name "python-pyrfc3339")
- (version "1.1")
+ (version "2.0.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pyRFC3339" version))
+ (method git-fetch) ;no tests in PyPI archive
+ (uri (git-reference
+ (url "https://github.com/kurtraschke/pyRFC3339")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "06jv7ar7lpvvk0dixzwdr3wgm0g1lipxs429s2z7knwwa7hwpf41"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-pytz))
+ (base32 "1q7kz8i8kp1hk40zswgm7dcyyd2xmjpgn1jdm6rlpv3ddjdxdg48"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "TZ" "UTC")
+ (setenv "TZDIR"
+ (search-input-directory inputs "share/zoneinfo")))))))
(native-inputs
- (list python-nose))
+ (list python-pytest
+ python-setuptools
+ tzdata-for-tests))
(home-page "https://github.com/kurtraschke/pyRFC3339")
(synopsis "Python timestamp library")
(description "Python library for generating and parsing RFC 3339-compliant