1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, setuptools 6, rapidfuzz 7, hypothesis 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "jarowinkler"; 13 version = "2.0.1"; 14 15 disabled = pythonOlder "3.8"; 16 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "maxbachmann"; 21 repo = "JaroWinkler"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-B3upTBNqMyi+CH7Zx04wceEXjGJnr6S3BIl87AQkfbo="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 ]; 29 30 propagatedBuildInputs = [ 31 rapidfuzz 32 ]; 33 34 nativeCheckInputs = [ 35 hypothesis 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "jarowinkler" ]; 40 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 }; 48}