nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 54 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, cmake 6, cython 7, rapidfuzz-capi 8, scikit-build 9, hypothesis 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "jarowinkler"; 15 version = "1.0.2"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "maxbachmann"; 21 repo = "JaroWinkler"; 22 rev = "v${version}"; 23 fetchSubmodules = true; 24 hash = "sha256-zVAcV6xxqyfXRUcyWo9PcOdagcexJc/D5k4g5ag3hbY="; 25 }; 26 27 nativeBuildInputs = [ 28 cmake 29 cython 30 rapidfuzz-capi 31 scikit-build 32 ]; 33 34 dontUseCmakeConfigure = true; 35 36 checkInputs = [ 37 hypothesis 38 pytestCheckHook 39 ]; 40 41 preCheck = '' 42 # import from $out 43 rm -r jarowinkler 44 ''; 45 46 pythonImportsCheck = [ "jarowinkler" ]; 47 48 meta = with lib; { 49 description = "Library for fast approximate string matching using Jaro and Jaro-Winkler similarity"; 50 homepage = "https://github.com/maxbachmann/JaroWinkler"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ dotlambda ]; 53 }; 54}