Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ 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 ]; };}