1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8
9 # dependencies
10 numpy,
11 pandas,
12 scipy,
13 xmltodict,
14
15 # tests
16 pytestCheckHook,
17 pytest-benchmark,
18}:
19
20buildPythonPackage {
21 pname = "motmetrics";
22 version = "1.4.0-unstable-2025-01-14";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "cheind";
27 repo = "py-motmetrics";
28 # Latest release is not compatible with pandas 2.0
29 rev = "c199b3e853d589af4b6a7d88f5bcc8b8802fc434";
30 hash = "sha256-DJ82nioW3jdIVo1B623BE8bBhVa1oMzYIkhhit4Z4dg=";
31 };
32
33 build-system = [ setuptools ];
34
35 dependencies = [
36 numpy
37 pandas
38 scipy
39 xmltodict
40 ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 pytest-benchmark
45 ];
46
47 pytestFlagsArray = [ "--benchmark-disable" ];
48
49 pythonImportsCheck = [ "motmetrics" ];
50
51 meta = with lib; {
52 description = "Benchmark multiple object trackers (MOT) in Python";
53 homepage = "https://github.com/cheind/py-motmetrics";
54 changelog = "https://github.com/cheind/py-motmetrics/releases/tag/${version}";
55 license = licenses.mit;
56 maintainers = [ ];
57 };
58}