pythonPackages.pyro-ppl: fix build, unmark as broken

This commit is contained in:
georgewhewell 2020-11-19 18:38:44 +00:00 committed by Jonathan Ringer
parent 9f2cc6f478
commit 5ee22cefe2

View File

@ -1,15 +1,17 @@
{ buildPythonPackage, fetchPypi, lib, pytorch, contextlib2 { buildPythonPackage, fetchPypi, lib, pytorch, contextlib2
, graphviz, networkx, six, opt-einsum, tqdm }: , graphviz, networkx, six, opt-einsum, tqdm, pyro-api }:
buildPythonPackage rec { buildPythonPackage rec {
version = "1.4.0"; version = "1.5.1";
pname = "pyro-ppl"; pname = "pyro-ppl";
src = fetchPypi { src = fetchPypi {
inherit version pname; inherit version pname;
sha256 = "e863321bee141fb8d20d621aedc5925c472e06c08988447490115f54a31487ad"; sha256 = "00mprgf8pf9jq3kanxjldj00cg3nbfkb5yg0mdfbdi0b1rx3vnsa";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
pyro-api
pytorch pytorch
contextlib2 contextlib2
# TODO(tom): graphviz pulls in a lot of dependencies - make # TODO(tom): graphviz pulls in a lot of dependencies - make
@ -22,18 +24,19 @@ buildPythonPackage rec {
]; ];
# pyro not shipping tests do simple smoke test instead # pyro not shipping tests do simple smoke test instead
checkPhase = '' pythonImportsCheck = [
python -c "import pyro" "pyro"
python -c "import pyro.distributions" "pyro.distributions"
python -c "import pyro.infer" "pyro.infer"
python -c "import pyro.optim" "pyro.optim"
''; ];
doCheck = false;
meta = { meta = {
description = "A Python library for probabilistic modeling and inference"; description = "A Python library for probabilistic modeling and inference";
homepage = "http://pyro.ai"; homepage = "http://pyro.ai";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh ]; maintainers = with lib.maintainers; [ teh georgewhewell ];
broken = true;
}; };
} }