summary refs log tree commit diff
path: root/gnu/packages/time.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-02-04 11:02:23 +0100
committerMarius Bakke <marius@gnu.org>2022-02-13 15:15:57 +0100
commitcc8d4fa5abd40ed4465dd6173924802d7c81bb26 (patch)
treed2e992e660c4e76203d023a5720e7906627a5872 /gnu/packages/time.scm
parent447e438aa69dbd9207c90bf68f71e42384a09f73 (diff)
downloadguix-cc8d4fa5abd40ed4465dd6173924802d7c81bb26.tar.gz
gnu: python-iso8601: Update to 1.0.2.
* gnu/packages/time.scm (python-iso8601): Update to 1.0.2.
[native-inputs]: Add PYTHON-PYTZ.
[home-page]: Update to current.
[properties]: New field.
* gnu/packages/time.scm (python2-iso8601): Update to 0.1.16.
Diffstat (limited to 'gnu/packages/time.scm')
-rw-r--r--gnu/packages/time.scm21
1 files changed, 16 insertions, 5 deletions
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index 9b57fe41fb..1b94632c09 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -353,14 +353,14 @@ ISO 8601 dates, time and duration.")
 (define-public python-iso8601
   (package
     (name "python-iso8601")
-    (version "0.1.13")
+    (version "1.0.2")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "iso8601" version))
        (sha256
         (base32
-         "1cgfj91khil4ii5gb8s6nxwm73vx7hqc2k79dd9d8990ylmc5ppp"))))
+         "1ccl6plks706hxm35cn1wsvxhqh3bfwi5cjgjpdxjib81qi07x97"))))
     (build-system python-build-system)
     (arguments
      '(#:phases (modify-phases %standard-phases
@@ -368,16 +368,27 @@ ISO 8601 dates, time and duration.")
                     (lambda _
                       (invoke "pytest" "-vv" "iso8601"))))))
     (native-inputs
-     (list python-pytest))
-    (home-page "https://bitbucket.org/micktwomey/pyiso8601")
+     (list python-pytest python-pytz))
+    (home-page "https://github.com/micktwomey/pyiso8601")
     (synopsis "Module to parse ISO 8601 dates")
     (description
      "This module parses the most common forms of ISO 8601 date strings (e.g.
 @code{2007-01-14T20:34:22+00:00}) into @code{datetime} objects.")
+    (properties `((python2-variant . ,(delay python2-iso8601))))
     (license expat)))
 
 (define-public python2-iso8601
-  (package-with-python2 python-iso8601))
+  (let ((base (package-with-python2 (strip-python2-variant python-iso8601))))
+    (package
+      (inherit base)
+      (version "0.1.16")
+      (source
+       (origin
+         (method url-fetch)
+         (uri (pypi-uri "iso8601" version))
+         (sha256
+          (base32
+           "0ny8dlycapxr8n2m13jxy0r7kbqvgypfshb6y7l981c0rivjylrn")))))))
 
 (define-public python-monotonic
   (package