nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 56 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 cython, 8 setuptools, 9 10 # dependencies 11 numpy, 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 38 six 39 ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 preCheck = '' 44 cd $out 45 ''; 46 47 pythonImportsCheck = [ "py_stringmatching" ]; 48 49 meta = { 50 broken = lib.versionAtLeast numpy.version "2"; 51 description = "Python string matching library including string tokenizers and string similarity measures"; 52 homepage = "https://github.com/anhaidgroup/py_stringmatching"; 53 changelog = "https://github.com/anhaidgroup/py_stringmatching/blob/v${version}/CHANGES.txt"; 54 license = lib.licenses.bsd3; 55 }; 56}