depot/third_party/nixpkgs/pkgs/development/python-modules/pyro-ppl/default.nix
Default email 893b09d324 Project import generated by Copybara.
GitOrigin-RevId: eac07edbd20ed4908b98790ba299250b5527ecdf
2021-12-24 12:21:11 +08:00

42 lines
969 B
Nix

{ buildPythonPackage, fetchPypi, lib, pytorch, contextlib2
, graphviz, networkx, six, opt-einsum, tqdm, pyro-api }:
buildPythonPackage rec {
version = "1.8.0";
pname = "pyro-ppl";
src = fetchPypi {
inherit version pname;
sha256 = "68e4ea30f219227dd88e55de2550d3f8c20a20adbdb67ad1e13b50868bb2ac0c";
};
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 ];
};
}