nixpkgs/pkgs/development/python-modules/pyro-ppl/default.nix

43 lines
969 B
Nix
Raw Normal View History

2018-12-23 19:20:39 +00:00
{ buildPythonPackage, fetchPypi, lib, pytorch, contextlib2
, graphviz, networkx, six, opt-einsum, tqdm, pyro-api }:
2018-12-23 19:20:39 +00:00
buildPythonPackage rec {
version = "1.5.2";
2018-12-23 19:20:39 +00:00
pname = "pyro-ppl";
src = fetchPypi {
inherit version pname;
sha256 = "8a93af3a007ac507a8b50fd1165dbb355182d17df29d3b5bc498b02b479fdb27";
2018-12-23 19:20:39 +00:00
};
propagatedBuildInputs = [
pyro-api
2018-12-23 19:20:39 +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
pythonImportsCheck = [
"pyro"
"pyro.distributions"
"pyro.infer"
"pyro.optim"
];
doCheck = false;
2018-12-23 19:20:39 +00:00
meta = {
description = "A Python library for probabilistic modeling and inference";
homepage = "http://pyro.ai";
2018-12-23 19:20:39 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh georgewhewell ];
2018-12-23 19:20:39 +00:00
};
}