2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gpytorch,
|
|
|
|
linear-operator,
|
|
|
|
multipledispatch,
|
|
|
|
pyro-ppl,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
wheel,
|
|
|
|
torch,
|
|
|
|
scipy,
|
|
|
|
pytestCheckHook,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "botorch";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.11.1";
|
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-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-YX/G46U09y/VZuWZhKY8zU0Y+bf0NKumzSGYUWvrq/0=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
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
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
dependencies = [
|
2023-05-24 13:37:59 +00:00
|
|
|
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-07-27 06:49:29 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"gpytorch"
|
|
|
|
"linear-operator"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|