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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, graphviz
, jupyter
, matplotlib
, networkx
, opt-einsum
, pandas
, pillow
, pyro-api
, pythonOlder
, pytorch
, scikit-learn
, seaborn
, torchvision
, tqdm
, wget
}:
2018-12-23 19:20:39 +00:00
buildPythonPackage rec {
pname = "pyro-ppl";
version = "1.8.1";
format = "setuptools";
disabled = pythonOlder "3.7";
2018-12-23 19:20:39 +00:00
src = fetchPypi {
inherit version pname;
hash = "sha256-18BJ6y50haYStN2ZwkwwnMhgx8vGsZczhwNPVDbRyNY=";
2018-12-23 19:20:39 +00:00
};
propagatedBuildInputs = [
pyro-api
2018-12-23 19:20:39 +00:00
pytorch
networkx
opt-einsum
tqdm
];
passthru.optional-dependencies = {
extras = [
graphviz
jupyter
# lap
matplotlib
pandas
pillow
scikit-learn
seaborn
torchvision
# visdom
wget
];
};
2018-12-23 19:20:39 +00:00
# pyro not shipping tests do simple smoke test instead
doCheck = false;
pythonImportsCheck = [
"pyro"
"pyro.distributions"
"pyro.infer"
"pyro.optim"
];
meta = with lib; {
description = "Library for probabilistic modeling and inference";
homepage = "http://pyro.ai";
license = licenses.asl20;
maintainers = with maintainers; [ teh georgewhewell ];
2018-12-23 19:20:39 +00:00
};
}