nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 934 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 rapidfuzz, 7 hypothesis, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "jarowinkler"; 13 version = "2.0.1"; 14 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "maxbachmann"; 19 repo = "JaroWinkler"; 20 tag = "v${version}"; 21 hash = "sha256-B3upTBNqMyi+CH7Zx04wceEXjGJnr6S3BIl87AQkfbo="; 22 }; 23 24 nativeBuildInputs = [ setuptools ]; 25 26 propagatedBuildInputs = [ rapidfuzz ]; 27 28 nativeCheckInputs = [ 29 hypothesis 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ "jarowinkler" ]; 34 35 meta = { 36 description = "Library for fast approximate string matching using Jaro and Jaro-Winkler similarity"; 37 homepage = "https://github.com/maxbachmann/JaroWinkler"; 38 changelog = "https://github.com/maxbachmann/JaroWinkler/blob/${src.rev}/CHANGELOG.md"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ dotlambda ]; 41 }; 42}