depot/third_party/nixpkgs/pkgs/development/python-modules/py-stringmatching/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

45 lines
913 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
numpy,
pythonOlder,
six,
}:
buildPythonPackage rec {
pname = "py-stringmatching";
version = "0.4.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-XdHLHwT/sgHM+uQ4lxw9c+AcAdJjL6OVgfwtJkYLoBs=";
};
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;
};
}