1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 cython, 8 setuptools, 9 10 # dependencies 11 numpy_1, 12 six, 13 14 # tests 15 pytestCheckHook, 16}: 17 18buildPythonPackage rec { 19 pname = "py-stringmatching"; 20 version = "0.4.6"; 21 22 src = fetchFromGitHub { 23 owner = "anhaidgroup"; 24 repo = "py_stringmatching"; 25 tag = "v${version}"; 26 hash = "sha256-gQiIIN0PeeM81ZHsognPFierf9ZXasq/JqxsYZmLAnU="; 27 }; 28 29 pyproject = true; 30 31 build-system = [ 32 setuptools 33 cython 34 ]; 35 36 dependencies = [ 37 numpy_1 38 six 39 ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 preCheck = '' 44 cd $out 45 ''; 46 47 pythonImportsCheck = [ "py_stringmatching" ]; 48 49 meta = with lib; { 50 description = "Python string matching library including string tokenizers and string similarity measures"; 51 homepage = "https://github.com/anhaidgroup/py_stringmatching"; 52 changelog = "https://github.com/anhaidgroup/py_stringmatching/blob/v${version}/CHANGES.txt"; 53 license = licenses.bsd3; 54 }; 55}