guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 88e2dd4650d4ee130561828074384cbf034686f2
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Oct 26 00:59:58 2025 +0200

    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 <[email protected]>
---
 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 42dc27a9d5..ec2a16b634 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

Reply via email to