depot/third_party/nixpkgs/pkgs/development/python-modules/pyro-ppl/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

42 lines
969 B
Nix

{ buildPythonPackage, fetchPypi, lib, pytorch, contextlib2
, graphviz, networkx, six, opt-einsum, tqdm, pyro-api }:
buildPythonPackage rec {
version = "1.6.0";
pname = "pyro-ppl";
src = fetchPypi {
inherit version pname;
sha256 = "ee181852713058f59d600dfa2e05bbc6f7f9b88fcdb4d2f1ccf61b0bf4794088";
};
propagatedBuildInputs = [
pyro-api
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;
meta = {
description = "A Python library for probabilistic modeling and inference";
homepage = "http://pyro.ai";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh georgewhewell ];
};
}