Subject: [PATCH rust-team v2 34/77] gnu: Add rust-icu-segmenter-1.

From: Andrew Wong <[email-masked]>
Date: Wed, 26 Feb 2025 19:50:44 -0500

* gnu/packages/crates-io.scm (rust-icu-segmenter-1): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 15370447ae..2359931bae 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33833,6 +33833,39 @@ (define-public rust-icu-provider-macros-1
     (description "This package provides proc macros for ICU data providers.")
     (license license:unicode)))
 
+(define-public rust-icu-segmenter-1
+  (package
+    (name "rust-icu-segmenter")
+    (version "1.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "icu_segmenter" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1pmharib9s1hn5650d4lyd48145n1n14pja2gcnzqvrl29b745x7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-core-maths" ,rust-core-maths-0.1)
+                       ("rust-databake" ,rust-databake-0.1)
+                       ("rust-displaydoc" ,rust-displaydoc-0.2)
+                       ("rust-icu-collections" ,rust-icu-collections-1)
+                       ("rust-icu-locid" ,rust-icu-locid-1)
+                       ("rust-icu-locid-transform" ,rust-icu-locid-transform-1)
+                       ("rust-icu-provider" ,rust-icu-provider-1)
+                       ("rust-icu-segmenter-data" ,rust-icu-segmenter-data-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-utf8-iter" ,rust-utf8-iter-1)
+                       ("rust-zerovec" ,rust-zerovec-0.10))))
+    (home-page "https://icu4x.unicode.org")
+    (synopsis
+     "Unicode line breaking and text segmentation algorithms for text boundaries analysis")
+    (description
+     "This package provides Unicode line breaking and text segmentation algorithms for text boundaries
+analysis.")
+    (license license:unicode)))
+
 (define-public rust-idea-0.5
   (package
     (name "rust-idea")
-- 
2.48.1