about summary refs log tree commit diff
path: root/pkgs/development/python-modules/effdet/default.nix
blob: 73e8892b7a41180aac2ad07e271c5d2060743802 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  # build inputs
  torch,
  torchvision,
  timm,
  pycocotools,
  omegaconf,
}:
let
  pname = "effdet";
  version = "0.4.1";
in
buildPythonPackage {
  inherit pname version;
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-rFWJ/TBKVlDCAZhrLvX44QwREJOnGxxJ+muIF3EIErU=";
  };

  propagatedBuildInputs = [
    torch
    torchvision
    timm
    pycocotools
    omegaconf
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "effdet" ];

  meta = {
    description = "A PyTorch implementation of EfficientDet";
    homepage = "https://pypi.org/project/effdet";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ happysalada ];
  };
}