Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / jarowinkler / default.nix
bloba0196265b8455c7faae153f3f14642456bff1c6d
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , setuptools
6 , rapidfuzz
7 , hypothesis
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "jarowinkler";
13   version = "2.0.1";
15   disabled = pythonOlder "3.8";
17   pyproject = true;
19   src = fetchFromGitHub {
20     owner = "maxbachmann";
21     repo = "JaroWinkler";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-B3upTBNqMyi+CH7Zx04wceEXjGJnr6S3BIl87AQkfbo=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     rapidfuzz
32   ];
34   nativeCheckInputs = [
35     hypothesis
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [ "jarowinkler" ];
41   meta = with lib; {
42     description = "Library for fast approximate string matching using Jaro and Jaro-Winkler similarity";
43     homepage = "https://github.com/maxbachmann/JaroWinkler";
44     changelog = "https://github.com/maxbachmann/JaroWinkler/blob/${src.rev}/CHANGELOG.md";
45     license = licenses.mit;
46     maintainers = with maintainers; [ dotlambda ];
47   };