Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, buildPythonPackage, fetchFromGitHub, cmake, cython_3_2, ninja, scikit-build-core, rapidfuzz-cpp, rapidfuzz, pytestCheckHook,}:
buildPythonPackage (finalAtts: { pname = "levenshtein"; version = "0.27.4"; pyproject = true;
src = fetchFromGitHub { owner = "rapidfuzz"; repo = "Levenshtein"; tag = "v${finalAtts.version}"; hash = "sha256-GPOiwbK1dV6lF3xiBCjzC3hXMWVVggvkviLHXSMU+Vs="; };
build-system = [ cmake cython_3_2 ninja scikit-build-core ];
dontUseCmakeConfigure = true;
buildInputs = [ rapidfuzz-cpp ];
dependencies = [ rapidfuzz ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "Levenshtein" ];
meta = { description = "Functions for fast computation of Levenshtein distance and string similarity"; homepage = "https://github.com/rapidfuzz/Levenshtein"; changelog = "https://github.com/rapidfuzz/Levenshtein/blob/v${finalAtts.version}/HISTORY.md"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ fab ]; };})