2018-12-23 19:20:39 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, pytorch, contextlib2
|
|
|
|
, graphviz, networkx, six, opt-einsum, tqdm }:
|
|
|
|
buildPythonPackage rec {
|
2019-10-16 10:43:13 +01:00
|
|
|
version = "0.3.4";
|
2018-12-23 19:20:39 +00:00
|
|
|
pname = "pyro-ppl";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2019-10-16 10:43:13 +01:00
|
|
|
sha256 = "42d8b8d2f992ad94cf7cf6d4b4dd2aa2ef85c0f83b9fffb0856db65f8225db73";
|
2018-12-23 19:20:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2019-10-07 16:20:23 +01:00
|
|
|
broken = true;
|
2018-12-23 19:20:39 +00:00
|
|
|
};
|
|
|
|
}
|