Subject: [PATCH rust-team v3 20/78] gnu: Add rust-chinese-number-0.7.

From: Andrew Wong <[email-masked]>
Date: Sun, 2 Mar 2025 16:29:51 -0500

* gnu/packages/crates-io.scm (rust-chinese-number-0.7): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0f6266cd14..6fd4d11870 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12103,6 +12103,32 @@ (define-public rust-chic-1
     (description "This package provides pretty parser error reporting.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-chinese-number-0.7
+  (package
+    (name "rust-chinese-number")
+    (version "0.7.7")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "chinese-number" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0v5va8drix8gs2kv6pmv5yzdxhlpzrwkp3ch86kxdxj6cgpwmz29"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-chinese-variant" ,rust-chinese-variant-1)
+                       ("rust-enum-ordinalize" ,rust-enum-ordinalize-4)
+                       ("rust-num-bigint" ,rust-num-bigint-0.4)
+                       ("rust-num-traits" ,rust-num-traits-0.2))))
+    (home-page "https://magiclen.org/chinese-number")
+    (synopsis
+     "Convert primitive numbers to Chinese numbers, or parse Chinese numbers to primitive numbers")
+    (description
+     "This package provides Convert primitive numbers to Chinese numbers, or parse Chinese numbers to
+primitive numbers.")
+    (license license:expat)))
+
 (define-public rust-chrono-0.4
   (package
     (name "rust-chrono")
-- 
2.48.1