2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, future
|
2022-05-18 14:49:53 +00:00
|
|
|
, fsspec
|
|
|
|
, packaging
|
2020-09-25 04:45:31 +00:00
|
|
|
, pytestCheckHook
|
2022-09-09 14:08:57 +00:00
|
|
|
, torch
|
2020-09-25 04:45:31 +00:00
|
|
|
, pyyaml
|
2022-04-15 01:41:22 +00:00
|
|
|
, tensorboard
|
2022-05-18 14:49:53 +00:00
|
|
|
, torchmetrics
|
2020-09-25 04:45:31 +00:00
|
|
|
, tqdm }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytorch-lightning";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.6.5";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyTorchLightning";
|
|
|
|
repo = pname;
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-CgD5g5nhz2DI4gOQyPl8/Cq6wWHzL0ALgOB5SgUOgaI=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
packaging
|
2020-09-25 04:45:31 +00:00
|
|
|
future
|
2022-05-18 14:49:53 +00:00
|
|
|
fsspec
|
2022-09-09 14:08:57 +00:00
|
|
|
torch
|
2020-09-25 04:45:31 +00:00
|
|
|
pyyaml
|
2022-04-15 01:41:22 +00:00
|
|
|
tensorboard
|
2022-05-18 14:49:53 +00:00
|
|
|
torchmetrics
|
2020-09-25 04:45:31 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|