summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ttach/default.nix
blob: 9da0fac62b2c3bdb2b3ee1af2f04c6f2f1e38996 (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
{
  fetchFromGitHub,
  pytestCheckHook,
  torch,
  buildPythonPackage,
  lib,
}:

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

  src = fetchFromGitHub {
    owner = "qubvel";
    repo = "ttach";
    tag = "v${version}";
    hash = "sha256-R6QO+9hv0eI7dZW5iJf096+LU1q+vnmOpveurgZemPc=";
  };

  propagatedBuildInputs = [ torch ];

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

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