about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/motmetrics/default.nix
blob: 36fa2d9a7557e411f81193984c7f825aeb61cc2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ lib
, buildPythonPackage
, fetchFromGitHub

# build-system
, setuptools

# dependencies
, numpy
, pandas
, scipy
, xmltodict

# tests
, pytestCheckHook
, pytest-benchmark
}:

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=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    numpy
    pandas
    scipy
    xmltodict
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-benchmark
  ];

  pythonImportsCheck = [
    "motmetrics"
  ];

  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; [ ];
  };
}