diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2025-10-02 20:54:54 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-02 22:02:50 +0100 |
| commit | f51dd973390b00c1e37182eaf18936b419e9ce80 (patch) | |
| tree | 4593d57cde56e8fe0e433500c784066157e4fc02 /gnu/packages/python-xyz.scm | |
| parent | 7b2538b003a1cb27b423e0376fffdfb08226171a (diff) | |
gnu: python-whenever: Update to 0.9.2.
* gnu/packages/python-xyz.scm (python-whenever): Update to 0.9.2.
[arguments] <phases>: 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 <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7664ff0cb7..7ff559110f 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: |
