ed0c4a69f0
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
33 lines
709 B
Nix
33 lines
709 B
Nix
{ fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, torch
|
|
, buildPythonPackage
|
|
, lib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ttach";
|
|
version = "0.0.3";
|
|
|
|
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 ];
|
|
};
|
|
}
|