nixpkgs/pkgs/development/python-modules/py-stringmatching/default.nix
2025-05-02 11:57:01 -07:00

55 lines
999 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
setuptools,
# dependencies
numpy_1,
six,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "py-stringmatching";
version = "0.4.6";
src = fetchFromGitHub {
owner = "anhaidgroup";
repo = "py_stringmatching";
tag = "v${version}";
hash = "sha256-gQiIIN0PeeM81ZHsognPFierf9ZXasq/JqxsYZmLAnU=";
};
pyproject = true;
build-system = [
setuptools
cython
];
dependencies = [
numpy_1
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;
};
}