15 buildPythonPackage rec {
16 pname = "levenshtein";
20 disabled = pythonOlder "3.9";
22 src = fetchFromGitHub {
23 owner = "maxbachmann";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-uLOOAmJ8Y0z+tuIIOSnI8qZoZ+IA2+tNBX1lDCvc8+A=";
27 fetchSubmodules = true; # # for vendored `rapidfuzz-cpp`
37 dontUseCmakeConfigure = true;
39 buildInputs = [ rapidfuzz-cpp ];
41 dependencies = [ rapidfuzz ];
43 nativeCheckInputs = [ pytestCheckHook ];
45 pythonImportsCheck = [ "Levenshtein" ];
48 description = "Functions for fast computation of Levenshtein distance and string similarity";
49 homepage = "https://github.com/maxbachmann/Levenshtein";
50 changelog = "https://github.com/maxbachmann/Levenshtein/blob/${src.rev}/HISTORY.md";
51 license = licenses.gpl2Plus;
52 maintainers = with maintainers; [ fab ];