blob: 9611dfaf988da102c60e7331589f9093674b065d (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
rustPlatform,
pytest,
cargo,
rustc,
}:
buildPythonPackage rec {
pname = "general-sam";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "ModelTC";
repo = "general-sam-py";
rev = "v${version}";
hash = "sha256-++6Z9Ocee4QFN1u0nK/g9uGdmB1UYnfHhhJj74zboCE=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-8HHIM1Abz5KxnVphFFNJp6L3D6iPeoB7qVmxy11CUZs=";
};
build-system = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
optional-dependencies = {
test = [
pytest
];
};
pythonImportsCheck = [
"general_sam"
];
meta = {
description = "General suffix automaton implementation";
homepage = "https://github.com/ModelTC/general-sam-py";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ BatteredBunny ];
};
}
|