pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / motmetrics / default.nix
blob74a0fade7bd9926f5be521a080a8bb963a77de89
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # build-system
7   setuptools,
9   # dependencies
10   numpy,
11   pandas,
12   scipy,
13   xmltodict,
15   # tests
16   pytestCheckHook,
17   pytest-benchmark,
20 buildPythonPackage rec {
21   pname = "motmetrics";
22   version = "1.4.0-unstable-20240130";
23   pyproject = true;
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   };
33   nativeBuildInputs = [ setuptools ];
35   propagatedBuildInputs = [
36     numpy
37     pandas
38     scipy
39     xmltodict
40   ];
42   nativeCheckInputs = [
43     pytestCheckHook
44     pytest-benchmark
45   ];
47   pythonImportsCheck = [ "motmetrics" ];
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 = [ ];
54   };