Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / py-stringmatching / default.nix
blob305451aeb1654cf10c8f6c8e1f4e3558c7ed3a33
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools
5 , pytestCheckHook
6 , numpy
7 , pythonOlder
8 , six
9 }:
11 buildPythonPackage rec {
12   pname = "py-stringmatching";
13   version = "0.4.5";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-2XuhtWKtmO/8lGaHxdqwdMF6UVEUqw3PUCIC1c7J8rU=";
21   };
23   nativeBuildInputs = [
24     setuptools
25   ];
27   propagatedBuildInputs = [
28     numpy
29     six
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   preCheck = ''
37     cd $out
38   '';
40   pythonImportsCheck = [
41     "py_stringmatching"
42   ];
44   meta = with lib; {
45     description = "Python string matching library including string tokenizers and string similarity measures";
46     homepage = "https://github.com/anhaidgroup/py_stringmatching";
47     changelog = "https://github.com/anhaidgroup/py_stringmatching/blob/v${version}/CHANGES.txt";
48     license = licenses.bsd3;
49   };