Files
nixpkgs/pkgs/development/python-modules/stringzilla/default.nix
2025-10-31 16:46:09 +00:00

48 lines
978 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
numpy,
pytest-repeat,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "stringzilla";
version = "4.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "ashvardanian";
repo = "stringzilla";
tag = "v${version}";
hash = "sha256-QxdiGqVz/3dNHlkilbf/CZ/QB2iPEBYS4hkrQusad2c=";
};
build-system = [
setuptools
];
pythonImportsCheck = [ "stringzilla" ];
nativeCheckInputs = [
numpy
pytest-repeat
pytestCheckHook
];
enabledTestPaths = [ "scripts/test_stringzilla.py" ];
meta = {
changelog = "https://github.com/ashvardanian/StringZilla/releases/tag/${src.tag}";
description = "SIMD-accelerated string search, sort, hashes, fingerprints, & edit distances";
homepage = "https://github.com/ashvardanian/stringzilla";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
aciceri
dotlambda
];
};
}