nixpkgs/pkgs/development/python-modules/ttach/default.nix
Wolfgang Walther 16a063497c
maintainers: drop cfhammill
Inactive since 2024.
2025-12-02 16:34:30 +01:00

34 lines
683 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 = "ttach";
tag = "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 ];
};
}