Gaetan Lepage
2025-01-14 13:15:26 +01:00
parent deb4f62a8a
commit c0954a8d2f
@@ -1,29 +1,26 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
cmake,
cython,
fetchFromGitHub,
ninja,
pytestCheckHook,
pythonOlder,
rapidfuzz,
rapidfuzz-cpp,
scikit-build-core,
rapidfuzz-cpp,
rapidfuzz,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "levenshtein";
version = "0.26.0";
version = "0.27.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "maxbachmann";
repo = "Levenshtein";
tag = "v${version}";
hash = "sha256-uLOOAmJ8Y0z+tuIIOSnI8qZoZ+IA2+tNBX1lDCvc8+A=";
hash = "sha256-kiYu46qv8sBBcPoCo3PN1q9F0EJ1s5hAMKavPaztM4s=";
fetchSubmodules = true; # # for vendored `rapidfuzz-cpp`
};
@@ -44,11 +41,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "Levenshtein" ];
meta = with lib; {
meta = {
description = "Functions for fast computation of Levenshtein distance and string similarity";
homepage = "https://github.com/maxbachmann/Levenshtein";
changelog = "https://github.com/maxbachmann/Levenshtein/blob/${src.rev}/HISTORY.md";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fab ];
changelog = "https://github.com/maxbachmann/Levenshtein/blob/v${version}/HISTORY.md";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ fab ];
};
}