2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
scipy,
|
|
|
|
xmltodict,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-benchmark,
|
2024-02-07 01:22:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "motmetrics";
|
|
|
|
version = "1.4.0-unstable-20240130";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cheind";
|
|
|
|
repo = "py-motmetrics";
|
|
|
|
# latest release is not compatible with pandas 2.0
|
|
|
|
rev = "7210fcce0be1b76c96a62f6fe4ddbc90d944eacb";
|
|
|
|
hash = "sha256-7LKLHXWgW4QpivAgzvWl6qEG0auVvpiZ6bfDViCKsFY=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-benchmark
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "motmetrics" ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bar_chart: Benchmark multiple object trackers (MOT) in Python";
|
|
|
|
homepage = "https://github.com/cheind/py-motmetrics";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|