mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 18:03:59 +00:00
52 lines
901 B
Nix
52 lines
901 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchFromGitHub
|
||
|
, gpytorch
|
||
|
, linear_operator
|
||
|
, multipledispatch
|
||
|
, pyro-ppl
|
||
|
, setuptools-scm
|
||
|
, torch
|
||
|
, scipy
|
||
|
, pytestCheckHook
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "botorch";
|
||
|
version = "0.8.5";
|
||
|
format = "pyproject";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "pytorch";
|
||
|
repo = pname;
|
||
|
rev = "v${version}";
|
||
|
hash = "sha256-VcNHgfk8OfLJseQxHksycWuCPCudCtOdcRV0XnxHSfU=";
|
||
|
};
|
||
|
|
||
|
buildInputs = [
|
||
|
setuptools-scm
|
||
|
];
|
||
|
propagatedBuildInputs = [
|
||
|
gpytorch
|
||
|
linear_operator
|
||
|
multipledispatch
|
||
|
pyro-ppl
|
||
|
scipy
|
||
|
torch
|
||
|
];
|
||
|
|
||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||
|
|
||
|
checkInputs = [
|
||
|
pytestCheckHook
|
||
|
];
|
||
|
pythonImportsCheck = [ "botorch" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Bayesian Optimization in PyTorch";
|
||
|
homepage = "https://botorch.org";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ veprbl ];
|
||
|
};
|
||
|
}
|