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
, graphviz, networkx, six, opt-einsum, tqdm }:
, graphviz, networkx, six, opt-einsum, tqdm, pyro-api }:
buildPythonPackage rec {
version = "1.4.0";
version = "1.5.1";
pname = "pyro-ppl";
src = fetchPypi {
inherit version pname;
sha256 = "e863321bee141fb8d20d621aedc5925c472e06c08988447490115f54a31487ad";
sha256 = "00mprgf8pf9jq3kanxjldj00cg3nbfkb5yg0mdfbdi0b1rx3vnsa";
};
propagatedBuildInputs = [
pyro-api
pytorch
contextlib2
# 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
checkPhase = ''
python -c "import pyro"
python -c "import pyro.distributions"
python -c "import pyro.infer"
python -c "import pyro.optim"
'';
pythonImportsCheck = [
"pyro"
"pyro.distributions"
"pyro.infer"
"pyro.optim"
];
doCheck = false;
meta = {
description = "A Python library for probabilistic modeling and inference";
homepage = "http://pyro.ai";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh ];
broken = true;
maintainers = with lib.maintainers; [ teh georgewhewell ];
};
}