2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
poetry-core,
|
2024-06-05 15:53:02 +00:00
|
|
|
scikit-learn,
|
2024-09-19 14:19:46 +00:00
|
|
|
numpy,
|
2024-06-05 15:53:02 +00:00
|
|
|
scipy,
|
|
|
|
colorama,
|
2024-09-19 14:19:46 +00:00
|
|
|
jupyter,
|
|
|
|
matplotlib,
|
|
|
|
nbconvert,
|
|
|
|
nbformat,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bayesian-optimization";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.5.1";
|
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-05-24 13:37:59 +00:00
|
|
|
owner = "bayesian-optimization";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "BayesianOptimization";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-pDgvdQhlJ5aMRGdi2qXRXVCdJRvrOP/Nr0SSZyHH1WM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2024-09-19 14:19:46 +00:00
|
|
|
numpy
|
2020-04-24 23:36:52 +00:00
|
|
|
scipy
|
2023-05-24 13:37:59 +00:00
|
|
|
colorama
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
jupyter
|
|
|
|
matplotlib
|
|
|
|
nbconvert
|
|
|
|
nbformat
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "bayes_opt" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
broken = stdenv.isLinux && stdenv.isAarch64;
|
2022-09-09 14:08:57 +00:00
|
|
|
description = ''
|
|
|
|
A Python implementation of global optimization with gaussian processes
|
|
|
|
'';
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/bayesian-optimization/BayesianOptimization";
|
|
|
|
changelog = "https://github.com/bayesian-optimization/BayesianOptimization/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.juliendehos ];
|
|
|
|
};
|
|
|
|
}
|