From 719e9d8387a3326a8cadf6344009168f36f85ed2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 27 Dec 2023 09:07:52 +0200 Subject: [PATCH] gnu: Add rust-editdistancek-1. * gnu/packages/crates-io.scm (rust-editdistancek-1): New variable. Change-Id: Iaa0618a32ef9b54ccded9bf62ae4a289d2ecf910 --- gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 72f544698c..b41423b6f9 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -24315,6 +24315,30 @@ (define-public rust-edit-distance-2 "Levenshtein edit distance between strings, a measure for similarity.") (license license:asl2.0))) +(define-public rust-editdistancek-1 + (package + (name "rust-editdistancek") + (version "1.0.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "editdistancek" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "04r6lfq9sfz3wqhqm6fzfcqbj8w16y8bh0x6kzkgkimislixy0iy")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.5) + ("rust-levenshtein" ,rust-levenshtein-1) + ("rust-quickcheck" ,rust-quickcheck-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-triple-accel" ,rust-triple-accel-0.4)))) + (home-page "https://github.com/nkkarpov/editdistancek") + (synopsis "Fast algorithm for computing edit distance") + (description + "This crate provides fast algorithm for computing edit distance.") + (license license:expat))) + (define-public rust-ego-tree-0.6 (package (name "rust-ego-tree")