1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pytestCheckHook,
7 numpy,
8 pythonOlder,
9 six,
10}:
11
12buildPythonPackage rec {
13 pname = "py-stringmatching";
14 version = "0.4.6";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-XdHLHwT/sgHM+uQ4lxw9c+AcAdJjL6OVgfwtJkYLoBs=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [
27 numpy
28 six
29 ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 preCheck = ''
34 cd $out
35 '';
36
37 pythonImportsCheck = [ "py_stringmatching" ];
38
39 meta = with lib; {
40 description = "Python string matching library including string tokenizers and string similarity measures";
41 homepage = "https://github.com/anhaidgroup/py_stringmatching";
42 changelog = "https://github.com/anhaidgroup/py_stringmatching/blob/v${version}/CHANGES.txt";
43 license = licenses.bsd3;
44 };
45}