summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-26 00:59:58 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-29 00:05:48 +0000
commit88e2dd4650d4ee130561828074384cbf034686f2 (patch)
tree7276bcefbb849c02558766c9d8ddc51a7fde0589 /gnu/packages
parent7b4bf80f7a97f3af83c7d16ed782874d309af168 (diff)
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-xyz.scm40
1 files 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