depot/third_party/nixpkgs/pkgs/development/python-modules/pytorch-lightning/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

46 lines
963 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, future
, pytestCheckHook
, pytorch
, pyyaml
, tensorboard
, tqdm }:
buildPythonPackage rec {
pname = "pytorch-lightning";
version = "1.5.10";
disabled = isPy27;
src = fetchFromGitHub {
owner = "PyTorchLightning";
repo = pname;
rev = version;
sha256 = "sha256-GP6/VZuRv8dS5wKQW7RbtOSa2vV9Af2Jp+ioEW3bIgc=";
};
propagatedBuildInputs = [
future
pytorch
pyyaml
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 ];
};
}