nixpkgs/pkgs/development/python-modules/pyro-ppl/default.nix
2019-10-27 16:26:50 +01:00

40 lines
990 B
Nix

{ buildPythonPackage, fetchPypi, lib, pytorch, contextlib2
, graphviz, networkx, six, opt-einsum, tqdm }:
buildPythonPackage rec {
version = "0.5.1";
pname = "pyro-ppl";
src = fetchPypi {
inherit version pname;
sha256 = "cac2cb2a283c65d4187b7e19f0ff3b10a0ded1f377caba4f279c7898b206cd42";
};
propagatedBuildInputs = [
pytorch
contextlib2
# TODO(tom): graphviz pulls in a lot of dependencies - make
# optional when some time to figure out how.
graphviz
networkx
six
opt-einsum
tqdm
];
# 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"
'';
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;
};
}