1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
buildPythonPackage,
cargo,
fetchFromGitHub,
lib,
numpy,
pytest-repeat,
pytestCheckHook,
rustPlatform,
rustc,
setuptools,
}:
buildPythonPackage rec {
pname = "stringzilla";
version = "3.10.7";
pyproject = true;
src = fetchFromGitHub {
owner = "ashvardanian";
repo = "stringzilla";
rev = "refs/tags/v${version}";
hash = "sha256-36W7/PL8nRty8cHuMoTr73tQ4uvtjkwP9lyzNLCuhv0=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-qa03Jd0MMtDwkp2E81MacRMbzD/O7E29BT0tc2OjLiY=";
};
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 ];
};
}
|