Files
nixpkgs/pkgs/development/python-modules/jarowinkler/default.nix

43 lines
928 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
rapidfuzz,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "jarowinkler";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "rapidfuzz";
repo = "JaroWinkler";
tag = "v${version}";
hash = "sha256-B3upTBNqMyi+CH7Zx04wceEXjGJnr6S3BIl87AQkfbo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ rapidfuzz ];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "jarowinkler" ];
meta = {
description = "Library for fast approximate string matching using Jaro and Jaro-Winkler similarity";
homepage = "https://github.com/rapidfuzz/JaroWinkler";
changelog = "https://github.com/rapidfuzz/JaroWinkler/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}