Subject: [bug#71110] [PATCH rust-team 18/37] gnu: Add rust-iso8601-0.6.

From: Nicolas Goaziou <[email-masked]>
Date: Wed, 22 May 2024 11:45:36 +0200

* gnu/packages/crates-io.scm (rust-iso8601-0.6): New variable.
(rust-is-terminal-0.4): Inherit from above.

Change-Id: Idbff20353f8f1ce85ca827e2adaccaaef10f52af
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f0ce7e5924..54520dc8db 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34950,25 +34950,46 @@ (define-public rust-is-wsl-0.4
 Windows Subsystem for Linux.")
     (license license:expat)))
 
-(define-public rust-iso8601-0.4
+(define-public rust-iso8601-0.6
   (package
     (name "rust-iso8601")
-    (version "0.4.2")
+    (version "0.6.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "iso8601" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "15nfg6d4qlniw4gk7039s5y07lzgr1dp9snsw63lsxarnyz4zfg5"))))
+        (base32 "0lqif1zp19fjmrbhcdjx0ydnljax3090san5zq8r1x98x9rmsklj"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-nom" ,rust-nom-7))))
+     `(#:cargo-inputs
+       (("rust-chrono" ,rust-chrono-0.4)
+        ("rust-nom" ,rust-nom-7)
+        ("rust-num-traits" ,rust-num-traits-0.2)
+        ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-serde-json" ,rust-serde-json-1))))
     (home-page "https://github.com/badboy/iso8601")
-    (synopsis "Parsing ISO8601 dates using nom")
-    (description "Parsing ISO8601 dates using nom.")
+    (synopsis "Parsing ISO8601 dates using @code{nom}")
+    (description "This crate parses ISO8601 dates using @code{nom}.")
     (license license:expat)))
 
+(define-public rust-iso8601-0.4
+  (package
+    (inherit rust-iso8601-0.6)
+    (name "rust-iso8601")
+    (version "0.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "iso8601" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "15nfg6d4qlniw4gk7039s5y07lzgr1dp9snsw63lsxarnyz4zfg5"))))
+    (arguments
+     `(#:cargo-inputs (("rust-nom" ,rust-nom-7))))))
+
 (define-public rust-iso8601-0.3
   (package
     (inherit rust-iso8601-0.4)
-- 
2.41.0