2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-27 06:49:29 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
graphviz,
|
2024-07-27 06:49:29 +00:00
|
|
|
ipywidgets,
|
2024-06-05 15:53:02 +00:00
|
|
|
matplotlib,
|
2024-07-27 06:49:29 +00:00
|
|
|
notebook,
|
|
|
|
numpy,
|
2024-06-05 15:53:02 +00:00
|
|
|
opt-einsum,
|
|
|
|
pandas,
|
|
|
|
pillow,
|
|
|
|
pyro-api,
|
|
|
|
pythonOlder,
|
|
|
|
scikit-learn,
|
2024-07-27 06:49:29 +00:00
|
|
|
scipy,
|
2024-06-05 15:53:02 +00:00
|
|
|
seaborn,
|
|
|
|
setuptools,
|
2024-07-27 06:49:29 +00:00
|
|
|
torch,
|
2024-06-05 15:53:02 +00:00
|
|
|
torchvision,
|
|
|
|
tqdm,
|
|
|
|
wget,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyro-ppl";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.9.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyro-ppl";
|
|
|
|
repo = "pyro";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Dvbl/80EGoGWGhWYVIf/xjovUJG1+3WtpMH+lx1oB2E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
|
|
|
numpy
|
|
|
|
opt-einsum
|
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
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
optional-dependencies = {
|
2022-06-16 17:23:12 +00:00
|
|
|
extras = [
|
2024-07-27 06:49:29 +00:00
|
|
|
notebook
|
|
|
|
ipywidgets
|
2022-06-16 17:23:12 +00:00
|
|
|
graphviz
|
|
|
|
matplotlib
|
2024-07-27 06:49:29 +00:00
|
|
|
torchvision
|
2022-06-16 17:23:12 +00:00
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
scikit-learn
|
|
|
|
seaborn
|
2024-07-27 06:49:29 +00:00
|
|
|
scipy
|
2022-06-16 17:23:12 +00:00
|
|
|
# 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;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
teh
|
|
|
|
georgewhewell
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|