depot/third_party/nixpkgs/pkgs/development/python-modules/pyro-ppl/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

86 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
graphviz,
ipywidgets,
matplotlib,
notebook,
numpy,
opt-einsum,
pandas,
pillow,
pyro-api,
pythonOlder,
scikit-learn,
scipy,
seaborn,
setuptools,
torch,
torchvision,
tqdm,
wget,
}:
buildPythonPackage rec {
pname = "pyro-ppl";
version = "1.9.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pyro-ppl";
repo = "pyro";
rev = "refs/tags/${version}";
hash = "sha256-Dvbl/80EGoGWGhWYVIf/xjovUJG1+3WtpMH+lx1oB2E=";
};
build-system = [ setuptools ];
dependencies = [
numpy
opt-einsum
pyro-api
torch
tqdm
];
optional-dependencies = {
extras = [
notebook
ipywidgets
graphviz
matplotlib
torchvision
pandas
pillow
scikit-learn
seaborn
scipy
# visdom
wget
];
};
# 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";
changelog = "https://github.com/pyro-ppl/pyro/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [
teh
georgewhewell
];
};
}