2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gpytorch
|
|
|
|
, linear_operator
|
|
|
|
, multipledispatch
|
|
|
|
, pyro-ppl
|
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
|
|
|
, torch
|
|
|
|
, scipy
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "botorch";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.9.5";
|
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-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-M/VOt0p7io0K+VHrAmBJQ71VigH0Ll1D5it6+/o/3jg=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
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
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|