f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
58 lines
1.1 KiB
Nix
58 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.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tryolabs";
|
|
repo = "norfair";
|
|
rev = "v${version}";
|
|
hash = "sha256-aKB5TYSLW7FOXIy9u2hK7px6eEmIQdKPrhChKaU1uYs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
pythonRelaxDeps = [ "rich" ];
|
|
|
|
propagatedBuildInputs = [
|
|
filterpy
|
|
importlib-metadata
|
|
numpy
|
|
rich
|
|
scipy
|
|
];
|
|
|
|
passthru.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/v${version}";
|
|
homepage = "https://github.com/tryolabs/norfair";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fleaz ];
|
|
};
|
|
}
|