summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/mean-average-precision/default.nix
blob: f5670eca20d623f88f3c8a72552ff5421ed6bf93 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  numpy,
  pandas,
}:

buildPythonPackage rec {
  pname = "mean-average-precision";
  version = "2024.01.05.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bes-dev";
    repo = "mean_average_precision";
    tag = version;
    hash = "sha256-qo160L+oJsHERVOV0qdiRIZPMjvSlUmMTrAzThfrQSs=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    numpy
    pandas
  ];

  pythonImportsCheck = [
    "mean_average_precision"
  ];

  # No tests
  doCheck = false;

  meta = {
    description = "Mean Average Precision for Object Detection";
    homepage = "https://github.com/bes-dev/mean_average_precision";
    changelog = "https://github.com/bes-dev/mean_average_precision/blob/${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}