summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-23 19:33:33 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-07-27 00:25:48 +0100
commitecd95a8d5ae0b6547ab0c720edf5dcb1b00749f3 (patch)
tree0240914becb6f339fe9c455fa7913ff170af3058
parentb960746197c3edd09837353adcd7d6a1e921287e (diff)
gnu: python-iso8601: Update to 2.1.0 and add variant.
* gnu/packages/time.scm (python-iso8601): Update to 2.1.0. (python-iso8601/pinned): New variable. * gnu/packages/samba.scm (samba)[native-inputs]: Replace python-iso8601 by python-iso8601/pinned. Change-Id: I7e6fda6026eb6584bcbeaeaedada64472159276a Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/samba.scm2
-rw-r--r--gnu/packages/time.scm35
2 files changed, 25 insertions, 12 deletions
diff --git a/gnu/packages/samba.scm b/gnu/packages/samba.scm
index 9f5701fc10..f8bce908f1 100644
--- a/gnu/packages/samba.scm
+++ b/gnu/packages/samba.scm
@@ -274,7 +274,7 @@ external dependencies.")
(list python-cryptography)
'())
(list python-dnspython
- python-iso8601
+ python-iso8601/pinned
python-markdown
rpcsvc-proto ;for 'rpcgen'
python-pyasn1 ;for krb5 tests
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index 66f9ef412c..63b8372c82 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -555,22 +555,15 @@ ISO 8601 dates, time and duration.")
(define-public python-iso8601
(package
(name "python-iso8601")
- (version "1.0.2")
+ (version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "iso8601" version))
(sha256
- (base32
- "1ccl6plks706hxm35cn1wsvxhqh3bfwi5cjgjpdxjib81qi07x97"))))
- (build-system python-build-system)
- (arguments
- '(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "pytest" "-vv" "iso8601"))))))
- (native-inputs
- (list python-pytest python-pytz))
+ (base32 "1px83gnklx1dmwb3n3dcplyfvaczhbvhkjcq34qc88c9xqlkh7bb"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-poetry-core python-pytest python-pytz))
(home-page "https://github.com/micktwomey/pyiso8601")
(synopsis "Module to parse ISO 8601 dates")
(description
@@ -578,6 +571,26 @@ ISO 8601 dates, time and duration.")
@code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
(license expat)))
+(define-public python-iso8601/pinned
+ (hidden-package
+ (package/inherit python-iso8601
+ (version "1.0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "iso8601" version))
+ (sha256
+ (base32
+ "1ccl6plks706hxm35cn1wsvxhqh3bfwi5cjgjpdxjib81qi07x97"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "pytest" "-vv" "iso8601"))))))
+ (native-inputs
+ (list python-pytest python-pytz)))))
+
(define-public python-monotonic
(package
(name "python-monotonic")