Files
nixpkgs/pkgs/development/python-modules/norfair/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
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 ];
};
}