2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, pytorch, contextlib2
|
2020-11-24 20:58:05 +00:00
|
|
|
, graphviz, networkx, six, opt-einsum, tqdm, pyro-api }:
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "1.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pyro-ppl";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "ee181852713058f59d600dfa2e05bbc6f7f9b88fcdb4d2f1ccf61b0bf4794088";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-11-24 20:58:05 +00:00
|
|
|
pyro-api
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
2020-11-24 20:58:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyro"
|
|
|
|
"pyro.distributions"
|
|
|
|
"pyro.infer"
|
|
|
|
"pyro.optim"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Python library for probabilistic modeling and inference";
|
|
|
|
homepage = "http://pyro.ai";
|
|
|
|
license = lib.licenses.mit;
|
2020-11-24 20:58:05 +00:00
|
|
|
maintainers = with lib.maintainers; [ teh georgewhewell ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|