Subject: [bug#69890] [PATCH 39/43] gnu: Add rust-byte-unit-5.

From: normalmente <[email-masked]>
Date: Tue, 19 Mar 2024 03:51:10 +0000

* gnu/packages/crates-io.scm (rust-byte-unit-5): New variable.

Change-Id: I5ec5803355ec978b39bd41e995a55cd7d8b6ce0f
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++++-----
 1 file changed, 26 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a5ce9579c6..cf8c957b2e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8685,28 +8685,49 @@ (define-public rust-byte-tools-0.3
     (description "Bytes related utility functions.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-byte-unit-4
+(define-public rust-byte-unit-5
   (package
     (name "rust-byte-unit")
-    (version "4.0.9")
+    (version "5.1.4")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "byte-unit" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0lxi11qf6h1rqr0yhsh7i6755l325qrkv9r4bgismyik531mi1qw"))))
+        (base32 "0gnnl92szl7d6bxz028n03ifflg96z4xp0lxqc3m8rmjy2yikb1k"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-serde" ,rust-serde-1)
-        ("rust-utf8-width" ,rust-utf8-width-0.1))))
+       (("rust-rocket" ,rust-rocket-0.5)
+        ("rust-rust-decimal" ,rust-rust-decimal-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-utf8-width" ,rust-utf8-width-0.1))
+       #:cargo-development-inputs
+       (("rust-serde-json" ,rust-serde-json-1))))
     (home-page "https://magiclen.org/byte-unit")
     (synopsis "Library for interaction with units of bytes")
     (description
      "This package provides a library for interaction with units of bytes.")
     (license license:expat)))
 
+(define-public rust-byte-unit-4
+  (package
+    (inherit rust-byte-unit-5)
+    (name "rust-byte-unit")
+    (version "4.0.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "byte-unit" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0lxi11qf6h1rqr0yhsh7i6755l325qrkv9r4bgismyik531mi1qw"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-serde" ,rust-serde-1)
+        ("rust-utf8-width" ,rust-utf8-width-0.1))))))
+
 (define-public rust-bytecheck-0.6
   (package
     (name "rust-bytecheck")
-- 
2.41.0