about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ttach/default.nix
blob: 39d504cf1b46db6a1f5d06f00ed3983ccb8553e0 (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
{ fetchFromGitHub
, pythonOlder
, pytestCheckHook
, torch
, buildPythonPackage
, lib
}:

buildPythonPackage rec {
  pname = "ttach";
  version = "0.0.3";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "qubvel";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-R6QO+9hv0eI7dZW5iJf096+LU1q+vnmOpveurgZemPc=";
  };

  propagatedBuildInputs = [ torch ];

  nativeCheckInputs = [ pytestCheckHook ];
  pythonImportsCheck = [ "ttach" ];

  meta = with lib; {
    description = "Image Test Time Augmentation with PyTorch";
    homepage = "https://github.com/qubvel/ttach";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ cfhammill ];
  };
}