2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, future
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytorch
|
|
|
|
, pyyaml
|
|
|
|
, tensorflow-tensorboard
|
|
|
|
, tqdm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytorch-lightning";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.5.8";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyTorchLightning";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "161mz66l11z4350q93fmmq3x0jzbp5761lf4fx3yvz17qzp7ygkn";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
pytorch
|
|
|
|
pyyaml
|
|
|
|
tensorflow-tensorboard
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
# Some packages are not in NixPkgs; other tests try to build distributed
|
|
|
|
# models, which doesn't work in the sandbox.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pytorch_lightning" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight PyTorch wrapper for machine learning researchers";
|
|
|
|
homepage = "https://pytorch-lightning.readthedocs.io";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ tbenst ];
|
|
|
|
};
|
|
|
|
}
|