2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, graphviz
|
|
|
|
, jupyter
|
|
|
|
, matplotlib
|
|
|
|
, networkx
|
|
|
|
, opt-einsum
|
|
|
|
, pandas
|
|
|
|
, pillow
|
|
|
|
, pyro-api
|
|
|
|
, pythonOlder
|
2022-09-09 14:08:57 +00:00
|
|
|
, torch
|
2022-06-16 17:23:12 +00:00
|
|
|
, scikit-learn
|
|
|
|
, seaborn
|
|
|
|
, torchvision
|
|
|
|
, tqdm
|
|
|
|
, wget
|
|
|
|
}:
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyro-ppl";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.8.5";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-wqwDWZWHT0rbjQfJKqRZT+eD/94WFKWczl4uDZzxkzQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-11-24 20:58:05 +00:00
|
|
|
pyro-api
|
2022-09-09 14:08:57 +00:00
|
|
|
torch
|
2020-04-24 23:36:52 +00:00
|
|
|
networkx
|
|
|
|
opt-einsum
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
extras = [
|
|
|
|
graphviz
|
|
|
|
jupyter
|
|
|
|
# lap
|
|
|
|
matplotlib
|
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
scikit-learn
|
|
|
|
seaborn
|
|
|
|
torchvision
|
|
|
|
# visdom
|
|
|
|
wget
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# pyro not shipping tests do simple smoke test instead
|
2022-06-16 17:23:12 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyro"
|
|
|
|
"pyro.distributions"
|
|
|
|
"pyro.infer"
|
|
|
|
"pyro.optim"
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for probabilistic modeling and inference";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://pyro.ai";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/pyro-ppl/pyro/releases/tag/${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ teh georgewhewell ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|