Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
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 = with lib; {
|
|
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 = licenses.bsd3;
|
|
maintainers = with maintainers; [ fleaz ];
|
|
};
|
|
}
|