2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gpytorch,
|
|
|
|
linear-operator,
|
|
|
|
multipledispatch,
|
|
|
|
pyro-ppl,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
wheel,
|
|
|
|
torch,
|
|
|
|
scipy,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonRelaxDepsHook,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "botorch";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.11.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pytorch";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-eL0buwqrGt4qcwdzCwD85IyiWjAFuP1n8aUb2pvvIKw=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
2024-02-07 01:22:34 +00:00
|
|
|
pythonRelaxDepsHook
|
2023-08-10 07:59:29 +00:00
|
|
|
setuptools
|
2023-05-24 13:37:59 +00:00
|
|
|
setuptools-scm
|
2023-08-10 07:59:29 +00:00
|
|
|
wheel
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
gpytorch
|
2024-01-13 08:15:51 +00:00
|
|
|
linear-operator
|
2023-05-24 13:37:59 +00:00
|
|
|
multipledispatch
|
|
|
|
pyro-ppl
|
|
|
|
scipy
|
|
|
|
torch
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "linear-operator" ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonImportsCheck = [ "botorch" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bayesian Optimization in PyTorch";
|
|
|
|
homepage = "https://botorch.org";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|