Subject: [PATCH] gnu: Add rust-country-parser
From: Mehmet Tekman <[email-masked]>
To: [email-masked]
Date: Wed, 27 Mar 2024 20:33:22 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

From 1c538d9c155c9c73961d061b728a8a7c7d45593c Mon Sep 17 00:00:00 2001
From: Mehmet Tekman <[email-masked]>
Date: Wed, 27 Mar 2024 20:28:31 +0100
Subject: [PATCH] gnu: Add rust-country-parser

* gnu/packages/crates-io.scm (rust-country-parser): New variable

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a67d3d74bb..7b1a2ab41b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14524,6 +14524,26 @@ (define-public rust-countme-3
      "This package provides a counts the number of live instances of types.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-country-parser-0.1
+  (package
+    (name "rust-country-parser")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "country-parser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ps0254pvx3nmnxs2v60kv7fqayh82r3jqypb4l3ql3i7s3rzr1n"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-rustix" ,rust-rustix-0.38))))
+    (home-page "https://github.com/Elinvynia/country-parser")
+    (synopsis "A simple country parser library")
+    (description "A simple country parser library. Currently contains all ISO 3166-1 countries.")
+    (license (list license:expat))))
+
 (define-public rust-cpal-0.13
   (package
     (name "rust-cpal")
-- 
2.41.0