blob: 3bcbed3fa3164d4ce6830dbe44e56923c2c71f8a (
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
55
56
57
58
59
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
filterpy,
importlib-metadata,
numpy,
rich,
scipy,
motmetrics,
opencv4,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "norfair";
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tryolabs";
repo = "norfair";
tag = "v${version}";
hash = "sha256-3a9Z4mbmqmSnOD69RAcKSX6N7vdDU5F/xgsEURnzIR0=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [
"numpy"
"rich"
];
dependencies = [
filterpy
importlib-metadata
numpy
rich
scipy
];
optional-dependencies = {
metrics = [ motmetrics ];
video = [ opencv4 ];
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "norfair" ];
meta = {
description = "Lightweight Python library for adding real-time multi-object tracking to any detector";
changelog = "https://github.com/tryolabs/norfair/releases/tag/${src.tag}";
homepage = "https://github.com/tryolabs/norfair";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fleaz ];
};
}
|