Files
nixpkgs/pkgs/development/python-modules/norfair/default.nix
2025-05-03 22:36:49 +00:00

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 ];
};
}