mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 21:24:03 +00:00
python312Packages.stringzilla: init at 3.10.5
This commit is contained in:
parent
dfadd0b94a
commit
fe638e6c13
59
pkgs/development/python-modules/stringzilla/default.nix
Normal file
59
pkgs/development/python-modules/stringzilla/default.nix
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
cargo,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
numpy,
|
||||
pytest-repeat,
|
||||
pytestCheckHook,
|
||||
rustPlatform,
|
||||
rustc,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "stringzilla";
|
||||
version = "3.10.5";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ashvardanian";
|
||||
repo = "stringzilla";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-E7w6s813OGCld/GRTHMbjVAReTGb37HlB687gP9N9FA=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
name = "${pname}-${version}";
|
||||
hash = "sha256-36LN9AoAWA//pldmQZtKMrck4EoGUW9G2vzdsRw08SA=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cargo
|
||||
rustPlatform.cargoSetupHook
|
||||
rustc
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "stringzilla" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
numpy
|
||||
pytest-repeat
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "scripts/test.py" ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/ashvardanian/StringZilla/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -15135,6 +15135,8 @@ self: super: with self; {
|
||||
|
||||
stringparser = callPackage ../development/python-modules/stringparser { };
|
||||
|
||||
stringzilla = callPackage ../development/python-modules/stringzilla { };
|
||||
|
||||
stripe = callPackage ../development/python-modules/stripe { };
|
||||
|
||||
striprtf = callPackage ../development/python-modules/striprtf { };
|
||||
|
Loading…
Reference in New Issue
Block a user