depot/third_party/nixpkgs/pkgs/development/python-modules/ttach/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

33 lines
703 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 ];
checkInputs = [ 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 ];
};
}