Subject: [bug#67515] [PATCH 44/91] gnu: Add rust-textdistance-1.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:12:22 +0100

* gnu/packages/crates-graphics.scm (rust-textdistance-1): New variable.

Change-Id: I1b365f4efaac650dd50bf6a1123ecdcd635eadc1
---
 gnu/packages/crates-graphics.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index abc4f3a01f..79922722a9 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -2655,6 +2655,31 @@ (define-public rust-smithay-clipboard-0.6
 applications.")
     (license license:expat)))
 
+(define-public rust-textdistance-1
+  (package
+    (name "rust-textdistance")
+    (version "1.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "textdistance" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0yq3lqn0hh2313z1irbc1apxck0dalvf5k79acwy8irbdibwh8fk"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-development-inputs
+       (("rust-assert2" ,rust-assert2-0.3)
+        ("rust-criterion" ,rust-criterion-0.4)
+        ("rust-proptest" ,rust-proptest-1)
+        ("rust-rstest" ,rust-rstest-0.17)
+        ("rust-unicode-segmentation" ,rust-unicode-segmentation-1))))
+    (home-page "https://github.com/life4/textdistance.rs")
+    (synopsis "Lots of algorithms to compare how similar two sequences are")
+    (description
+     "Lots of algorithms to compare how similar two sequences are")
+    (license license:expat)))
+
 (define-public rust-tiff-0.8
   (package
     (name "rust-tiff")
-- 
2.41.0