From 79f23ee8654bdeca9bae2061d493a6d09c5ab986 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 9 Aug 2025 12:42:09 +0100 Subject: [PATCH] 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] : 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 4aff688b32943ddb9c0d7f79244c4ff9bc7e9173..2258cf13afc0891dbddf205caa3a5017dfcf97ec 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