587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
50 lines
921 B
Nix
50 lines
921 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, pytestCheckHook
|
|
, numpy
|
|
, pythonOlder
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-stringmatching";
|
|
version = "0.4.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2XuhtWKtmO/8lGaHxdqwdMF6UVEUqw3PUCIC1c7J8rU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
cd $out
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"py_stringmatching"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python string matching library including string tokenizers and string similarity measures";
|
|
homepage = "https://github.com/anhaidgroup/py_stringmatching";
|
|
changelog = "https://github.com/anhaidgroup/py_stringmatching/blob/v${version}/CHANGES.txt";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|