From f51dd973390b00c1e37182eaf18936b419e9ce80 Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Thu, 2 Oct 2025 20:54:54 +0200 Subject: [PATCH] gnu: python-whenever: Update to 0.9.2. * gnu/packages/python-xyz.scm (python-whenever): Update to 0.9.2. [arguments] : Add 'set-check-environment. [propagated-inputs]: Add python-time-machine and python-tzlocal. [native-inputs]: Remove python-setuptools-rust and python-wheel; add python-pytest, and tzdata-for-tests. Change-Id: I926457bd581c6803e0ebbb7d29b1293d233523c3 Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7664ff0cb7ca6ab178ff80a744d70c087e48fa71..7ff559110ffdccb3323d528fb745159d01ce1f21 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -40266,22 +40266,35 @@ write text fast, and for various text generation, statistics, and modeling tasks (define-public python-whenever (package (name "python-whenever") - (version "0.6.16") + (version "0.9.2") (source (origin (method url-fetch) (uri (pypi-uri "whenever" version)) (sha256 - (base32 "1diqibiv07i0q4sqqd1qw4bbzmp84zlrfv8lmlc395b5czwpf5pj")))) + (base32 "1awcy5s25z2f7yk4n4x3ibjhypxz7ilgz4hi3fiww58pdcgzcnpw")))) (build-system pyproject-build-system) (arguments - `(#:phases (modify-phases %standard-phases - ;; Use the pure python version - (add-before 'build 'setenv - (lambda _ - (setenv "WHENEVER_NO_BUILD_RUST_EXT" "1")))))) - (propagated-inputs (list python-tzdata)) - (native-inputs (list python-setuptools python-setuptools-rust python-wheel)) + (list + ;; tests: 2170 passed, 3 skipped, 2 warnings + #:phases + #~(modify-phases %standard-phases + ;; Use the pure python version + (add-before 'build 'setenv + (lambda _ + (setenv "WHENEVER_NO_BUILD_RUST_EXT" "1"))) + (add-before 'check 'set-check-environment + (lambda* (#:key inputs #:allow-other-keys) + (setenv "TZ" "UTC") + (setenv "TZDIR" + (search-input-directory inputs + "share/zoneinfo"))))))) + (propagated-inputs + (list python-time-machine python-tzdata python-tzlocal)) + (native-inputs + (list python-pytest + python-setuptools + tzdata-for-tests)) (home-page "https://whenever.readthedocs.io/") (synopsis "Modern datetime library for Python") (description "Modern datetime library for Python. Supports: