Unverified Commit dc3d9427 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #205245 from bcdarwin/python3-ttach

python3Packages.ttach: init at 0.0.3
parents 8d6a0e96 c7bc0808
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -11593,6 +11593,8 @@ self: super: with self; {

  trytond = callPackage ../development/python-modules/trytond { };

  ttach = callPackage ../development/python-modules/ttach { };

  ttls = callPackage ../development/python-modules/ttls { };

  ttp = callPackage ../development/python-modules/ttp { };