python3Packages.ignite: 0.2.1 -> 0.3.0

This commit is contained in:
Benjamin Hipple 2020-05-09 12:50:17 -04:00
parent fb5bb25c10
commit 47105a1689

View File

@ -2,6 +2,7 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytest , pytest
, matplotlib
, mock , mock
, pytorch , pytorch
, pynvml , pynvml
@ -11,24 +12,24 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "ignite"; pname = "ignite";
version = "0.2.1"; version = "0.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pytorch"; owner = "pytorch";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "15k6dd11yxn4923llcpmw4srl1by5ljhh7aw5pnkn4n4qpywh6cm"; sha256 = "0i863kxi1r1hspj19lhn6r8256vdazjcyvis0s33fgzrf7kxi08x";
}; };
checkInputs = [ pytest mock ]; checkInputs = [ pytest matplotlib mock ];
checkPhase = ''
pytest -k 'not visdom and not tensorboard and not mlflow and not polyaxon' tests/
'';
# these packages are not currently in nixpkgs
propagatedBuildInputs = [ pytorch scikitlearn tqdm pynvml ]; propagatedBuildInputs = [ pytorch scikitlearn tqdm pynvml ];
# Some packages are not in NixPkgs; other tests try to build distributed
# models, which doesn't work in the sandbox.
checkPhase = ''
pytest -k 'not visdom and not tensorboard and not mlflow and not polyaxon and not conftest and not engines and not distrib_' tests/
'';
meta = with lib; { meta = with lib; {
description = "High-level training library for PyTorch"; description = "High-level training library for PyTorch";
homepage = "https://pytorch.org/ignite"; homepage = "https://pytorch.org/ignite";