Subject: [bug#68312] [PATCH 068/156] gnu: Add rust-iso8601-0.4.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:45 +0100

* gnu/packages/crates-io.scm (rust-iso8601-0.4): New variable.
(rust-iso8601-0.3): Inherit from rust-iso8601-0.4.

Change-Id: Ide1d4cae9c2089194e2e94a70361b620f89bffff
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 749367f175c..c3b1bbd34d3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34934,8 +34934,29 @@ (define-public rust-is-terminal-0.4
 stream runs in a TTY.")
     (license license:expat)))
 
+(define-public rust-iso8601-0.4
+  (package
+    (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"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-nom" ,rust-nom-7))))
+    (home-page "https://github.com/badboy/iso8601")
+    (synopsis "Parsing ISO8601 dates using nom")
+    (description "Parsing ISO8601 dates using nom.")
+    (license license:expat)))
+
 (define-public rust-iso8601-0.3
   (package
+    (inherit rust-iso8601-0.4)
     (name "rust-iso8601")
     (version "0.3.0")
     (source
@@ -34947,13 +34968,8 @@ (define-public rust-iso8601-0.3
         (sha256
          (base32
           "0vvn6f9gv2295ik77nvaz99wzbwz1bmasrd787sz6d9mlwa6ks23"))))
-    (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs (("rust-nom" ,rust-nom-4))))
-    (home-page "https://github.com/badboy/iso8601")
-    (synopsis "Parsing ISO8601 dates using nom")
-    (description "Parsing ISO8601 dates using nom.")
-    (license license:expat)))
+     `(#:cargo-inputs (("rust-nom" ,rust-nom-4))))))
 
 (define-public rust-isolang-2
   (package
-- 
2.41.0