about summary refs log tree commit diff
path: root/pkgs/development/python-modules/lanms-neo/default.nix
blob: 149f98a608ae108e0b9f5596f892fccdceb88c7b (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, nix-update-script
, pythonOlder
, pybind11
, numpy
}:
let
  pname = "lanms-neo";
  version = "1.0.2";
in
buildPythonPackage {
  inherit pname version;
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "gen-ko";
    repo = pname;
    rev = "6510e19e731a1e105d42b2fbda64de41c169ce2e";
    hash = "sha256-0fs4RNN1ptiir7GfR9B8HK0VqTkk5PbVJxgKiDId3po=";
  };

  propagatedBuildInputs = [
    pybind11
    numpy
  ];

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Standalone module for Locality-Aware NMS";
    homepage = "https://github.com/gen-ko/lanms-neo";
    license = licenses.asl20;
    maintainers = with maintainers; [ happysalada ];
  };
}