Subject: [bug#66805] [PATCH 03/22] gnu: Add rust-isolang-2.

From: Jaeme Sifat <[email-masked]>
Date: Sun, 29 Oct 2023 00:26:55 -0400

* gnu/packages/crates-io.scm (rust-isolang-2): New variable.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: I717f61b64e1f8126f298cc8de165bec41b85d417
---
 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 c569048c55..20b05b2678 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34976,6 +34976,32 @@ (define-public rust-iso8601-0.3
     (description "Parsing ISO8601 dates using nom.")
     (license license:expat)))
 
+(define-public rust-isolang-2
+  (package
+    (name "rust-isolang")
+    (version "2.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "isolang" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0wg07gh7a1cvx0c1w238d7l4vh17cwwvjmw729qqnw5wn4fj43zq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags `("--"
+                            "--skip=generated_code_table_if_outdated")
+       #:cargo-inputs (("rust-phf" ,rust-phf-0.11)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-phf-codegen" ,rust-phf-codegen-0.11)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/humenda/isolang-rs")
+    (synopsis "Efficient, static lookup table for ISO 639 language codes")
+    (description
+     "This package provides an efficient, static lookup table for ISO 639
+language codes.")
+    (license license:asl2.0)))
+
 (define-public rust-itertools-0.11
   (package
     (name "rust-itertools")
-- 
2.34.1