mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
82 lines
1.3 KiB
Nix
82 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
graphviz,
|
|
jupyter,
|
|
matplotlib,
|
|
networkx,
|
|
opt-einsum,
|
|
pandas,
|
|
pillow,
|
|
pyro-api,
|
|
pythonOlder,
|
|
torch,
|
|
scikit-learn,
|
|
seaborn,
|
|
setuptools,
|
|
torchvision,
|
|
tqdm,
|
|
wget,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyro-ppl";
|
|
version = "1.9.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit version pname;
|
|
hash = "sha256-QfTABRWVaCgPvFEWSJYKmKKxpBACfYvQpDIgrJsQLN8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
pyro-api
|
|
torch
|
|
networkx
|
|
opt-einsum
|
|
tqdm
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
extras = [
|
|
graphviz
|
|
jupyter
|
|
# lap
|
|
matplotlib
|
|
pandas
|
|
pillow
|
|
scikit-learn
|
|
seaborn
|
|
torchvision
|
|
# 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
|
|
];
|
|
};
|
|
}
|