1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 12:59:25 +00:00
nixpkgs/pkgs/development/python-modules/pyro-ppl/default.nix

40 lines
992 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 }:
buildPythonPackage rec {
2020-08-16 18:31:12 +01:00
version = "1.4.0";
2018-12-23 19:20:39 +00:00
pname = "pyro-ppl";
src = fetchPypi {
inherit version pname;
2020-08-16 18:31:12 +01:00
sha256 = "e863321bee141fb8d20d621aedc5925c472e06c08988447490115f54a31487ad";
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";
2018-12-23 19:20:39 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ teh ];
broken = true;
2018-12-23 19:20:39 +00:00
};
}