45 lines
944 B
Nix
45 lines
944 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
numpy,
|
|
pytest-repeat,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "stringzilla";
|
|
version = "3.11.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ashvardanian";
|
|
repo = "stringzilla";
|
|
tag = "v${version}";
|
|
hash = "sha256-2qmcjRNjCyErzwto2DqdDU9NX4+hqeibhDM85c81TgU=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [ "stringzilla" ];
|
|
|
|
nativeCheckInputs = [
|
|
numpy
|
|
pytest-repeat
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [ "scripts/test.py" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/ashvardanian/StringZilla/releases/tag/v${version}";
|
|
description = "SIMD-accelerated string search, sort, hashes, fingerprints, & edit distances";
|
|
homepage = "https://github.com/ashvardanian/stringzilla";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|