5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
40 lines
990 B
Nix
40 lines
990 B
Nix
{ buildPythonPackage, fetchPypi, lib, pytorch, contextlib2
|
|
, graphviz, networkx, six, opt-einsum, tqdm }:
|
|
buildPythonPackage rec {
|
|
version = "0.3.3";
|
|
pname = "pyro-ppl";
|
|
|
|
src = fetchPypi {
|
|
inherit version pname;
|
|
sha256 = "e980e2aa5a029e2f133d422a9154a21c9cca96c417c230ddde858e41aa43687b";
|
|
};
|
|
|
|
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;
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ teh ];
|
|
broken = true;
|
|
};
|
|
}
|