Files
2026-07-15 14:04:39 -04:00

40 lines
780 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
cython,
pdm-backend,
setuptools,
}:
buildPythonPackage rec {
pname = "editdistance";
version = "0.8.1";
pyproject = true;
src = fetchFromGitHub {
owner = "roy-ht";
repo = "editdistance";
tag = "v${version}";
hash = "sha256-Ncdg8S/UHYqJ1uFnHk9qhHMM3Lrop00woSu3PLKvuBI=";
};
nativeBuildInputs = [
cython
pdm-backend
setuptools
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "editdistance" ];
meta = {
description = "Python implementation of the edit distance (Levenshtein distance)";
homepage = "https://github.com/roy-ht/editdistance";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}