From 88e2dd4650d4ee130561828074384cbf034686f2 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 26 Oct 2025 00:59:58 +0200 Subject: [PATCH] gnu: python-levenshtein: Update to 0.27.1. * gnu/packages/python-xyz.scm (python-levenshtein): Update to 0.27.1. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [propagated-inputs]: Add python-rapidfuzz. [native-inputs]: Add cmake-minimal, python-cython, python-pytest, python-scikit-build-core, python-setuptools, rapidfuzz-cpp. Change-Id: I05011e5e34adf4c34acb425c493af56fbd99767d Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 42dc27a9d56..ec2a16b6346 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -24989,26 +24989,36 @@ parts of the lines that were modified.") (define-public python-levenshtein (package (name "python-levenshtein") - (version "0.12.2") + (version "0.27.1") (source (origin - (method url-fetch) - (uri (pypi-uri "python-Levenshtein" version)) - (sha256 - (base32 - "1xj60gymwx1jl2ra9razx2wk8nb9cv1i7l8d14qsp8a8s7xra8yw")))) - (build-system python-build-system) - (home-page "https://github.com/ztane/python-Levenshtein") + (method git-fetch) + (uri (git-reference + (url "https://github.com/rapidfuzz/Levenshtein") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1khr1vjmrwakjfdsb22k508h3g8awjp0yb398ca8n1xanwzk4l8h")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-rapidfuzz)) + (native-inputs + (list cmake-minimal + python-cython + python-pytest + python-scikit-build-core + python-setuptools + rapidfuzz-cpp)) + (home-page "https://github.com/rapidfuzz/Levenshtein") (synopsis "Fast computation of Levenshtein distance and string similarity") (description "The Levenshtein Python C extension module contains functions for fast computation of - @enumerate - @item Levenshtein (edit) distance, and edit operations - @item string similarity - @item approximate median strings, and generally string averaging - @item string sequence and set similarity - @end enumerate - It supports both normal and Unicode strings.") +@enumerate +@item Levenshtein (edit) distance, and edit operations +@item string similarity +@item approximate median strings, and generally string averaging +@item string sequence and set similarity +@end enumerate +It supports both normal and Unicode strings.") (license license:gpl2+))) (define-public python-scandir