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 rec {
21 pname = "motmetrics";
22 version = "1.4.0-unstable-20240130";
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 = "7210fcce0be1b76c96a62f6fe4ddbc90d944eacb";
30 hash = "sha256-7LKLHXWgW4QpivAgzvWl6qEG0auVvpiZ6bfDViCKsFY=";
31 };
32
33 nativeBuildInputs = [ setuptools ];
34
35 propagatedBuildInputs = [
36 numpy
37 pandas
38 scipy
39 xmltodict
40 ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 pytest-benchmark
45 ];
46
47 pythonImportsCheck = [ "motmetrics" ];
48
49 meta = with lib; {
50 description = "Bar_chart: Benchmark multiple object trackers (MOT) in Python";
51 homepage = "https://github.com/cheind/py-motmetrics";
52 license = licenses.mit;
53 maintainers = with maintainers; [ ];
54 };
55}