From 49ea9bcc4a344d054a49b3465cd27c688a132349 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 27 Jan 2025 21:48:38 +0100 Subject: [PATCH] gnu: Add python-whenever. * gnu/packages/python-xyz.scm (python-whenever): New variable. Change-Id: Idbdcf27dee3d772fdb7e679e6060287e2b6a3aa7 --- gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 31a51665744954558dcd2b3479313b1cf61fe00e..0a2cf0f31549f49488d23eaac69940c64726fea4 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -39789,6 +39789,35 @@ write text fast, and for various text generation, statistics, and modeling tasks (base32 "0mikjfvq26kh8asnn9v55z41pap4c5ypymqnwwi4xkavc3mzyda2")))))) +(define-public python-whenever + (package + (name "python-whenever") + (version "0.6.16") + (source + (origin + (method url-fetch) + (uri (pypi-uri "whenever" version)) + (sha256 + (base32 "1diqibiv07i0q4sqqd1qw4bbzmp84zlrfv8lmlc395b5czwpf5pj")))) + (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)) + (home-page "https://whenever.readthedocs.io/") + (synopsis "Modern datetime library for Python") + (description "Modern datetime library for Python. Supports: +@itemize +@item DST-safe arithmetic +@item Nanosecond precision +@item Date arithmetic +@end itemize") + (license license:expat))) + (define-public python-xmp-toolkit (package (name "python-xmp-toolkit")