Subject: [bug#57448] [PATCH 1/5] gnu: Add rust-number-prefix 0.4.0

From: gyara <[email-masked]>
Date: Sat, 27 Aug 2022 19:10:37 +0900

---
There are still other packages deps on rust-number-prefix-0.3

 gnu/packages/crates-io.scm | 39 +++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7c5850791d..e446c6dddb 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39109,27 +39109,36 @@ (define-public rust-num-traits-0.1
      `(#:cargo-inputs
        (("rust-num-traits" , rust-num-traits-0.2))))))
 
-(define-public rust-number-prefix-0.3
+(define-public rust-number-prefix-0.4
   (package
     (name "rust-number-prefix")
-    (version "0.3.0")
-    (source
-      (origin
-        (method url-fetch)
-        (uri (crate-uri "number_prefix" version))
-        (file-name
-         (string-append name "-" version ".tar.gz"))
-        (sha256
-         (base32
-          "0slm4mqmpgs6hvz22ycny9lvyvl9ivs80a1lncslp7lszz02zc0p"))))
+    (version "0.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "number-prefix" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1wvh13wvlajqxkb1filsfzbrnq0vrmrw298v2j3sy82z1rm282w3"))))
     (build-system cargo-build-system)
     (home-page "https://github.com/ogham/rust-number-prefix")
-    (synopsis "Format numeric prefixes: kilo, giga, kibi")
-    (description
-     "This package provides a library for formatting numeric prefixes: kilo,
-giga, kibi.")
+    (synopsis "Library for numeric prefixes (kilo, giga, kibi).")
+    (description "Library for numeric prefixes (kilo, giga, kibi).")
     (license license:expat)))
 
+(define-public rust-number-prefix-0.3
+  (package
+    (inherit rust-number-prefix-0.4)
+    (name "rust-number-prefix")
+    (version "0.3.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "number_prefix" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0slm4mqmpgs6hvz22ycny9lvyvl9ivs80a1lncslp7lszz02zc0p"))))))
+
 (define-public rust-numtoa-0.1
   (package
     (name "rust-numtoa")
-- 
2.37.2