depot/third_party/nixpkgs/pkgs/development/python-modules/ttach/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
742 B
Nix

{
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 ];
};
}