From 5ee22cefe238a8b52d87946c796b45c2265898a8 Mon Sep 17 00:00:00 2001 From: georgewhewell Date: Thu, 19 Nov 2020 18:38:44 +0000 Subject: [PATCH] pythonPackages.pyro-ppl: fix build, unmark as broken --- .../python-modules/pyro-ppl/default.nix | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pyro-ppl/default.nix b/pkgs/development/python-modules/pyro-ppl/default.nix index c3157c3d301c..54c2155a51b5 100644 --- a/pkgs/development/python-modules/pyro-ppl/default.nix +++ b/pkgs/development/python-modules/pyro-ppl/default.nix @@ -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 ]; }; }