guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#68780] [PATCH 04/19] gnu: Add rust-chrono-tz-0.8.


From: Troy Figiel
Subject: [bug#68780] [PATCH 04/19] gnu: Add rust-chrono-tz-0.8.
Date: Sat, 27 Jan 2024 16:20:08 +0100

* gnu/packages/crates-io.scm (rust-chrono-tz-0.8): New variable.
(rust-chrono-tz-0.6): Inherit from rust-chrono-tz-0.8.
---
 gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++--------
 1 file changed, 32 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3825e14115..02cfe3c531 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9894,8 +9894,39 @@ (define-public rust-chrono-humanize-0.2
 Python @code{arrow.humanize}.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-chrono-tz-0.8
+  (package
+    (name "rust-chrono-tz")
+    (version "0.8.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "chrono-tz" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1dv0yqhr60wrhm4sdlralqw1jf5plcxc91q6v93hvamzk6gbgmwi"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-arbitrary" ,rust-arbitrary-1)
+        ("rust-chrono" ,rust-chrono-0.4)
+        ("rust-chrono-tz-build" ,rust-chrono-tz-build-0.2)
+        ("rust-phf" ,rust-phf-0.11)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-uncased" ,rust-uncased-0.9))
+       #:cargo-development-inputs
+       (("rust-chrono" ,rust-chrono-0.4)
+        ("rust-serde-test" ,rust-serde-test-1))))
+    (home-page "https://github.com/chronotope/chrono-tz";)
+    (synopsis "TimeZone implementations for rust-chrono from the IANA 
database")
+    (description
+     "Chrono-TZ is a library that provides implementors of the TimeZone trait
+for @code{rust-chrono}.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-chrono-tz-0.6
   (package
+    (inherit rust-chrono-tz-0.8)
     (name "rust-chrono-tz")
     (version "0.6.3")
     (source
@@ -9905,7 +9936,6 @@ (define-public rust-chrono-tz-0.6
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1pmv434fhw9pwiqc12pvgaiskrq4v1dh1f238gfsg48r301r5hr9"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags
        (list "--release" "--"
@@ -9918,13 +9948,7 @@ (define-public rust-chrono-tz-0.6
         ("rust-uncased" ,rust-uncased-0.9))
        #:cargo-development-inputs
        (("rust-chrono" ,rust-chrono-0.4)
-        ("rust-serde-test" ,rust-serde-test-1))))
-    (home-page "https://github.com/chronotope/chrono-tz";)
-    (synopsis "TimeZone implementations for rust-chrono from the IANA 
database")
-    (description
-     "Chrono-TZ is a library that provides implementors of the TimeZone trait
-for @code{rust-chrono}.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-serde-test" ,rust-serde-test-1))))))
 
 (define-public rust-chrono-tz-0.5
   (package
-- 
2.42.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]