67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
scikit-learn,
|
|
numpy,
|
|
scipy,
|
|
colorama,
|
|
packaging,
|
|
|
|
# tests
|
|
jupyter,
|
|
matplotlib,
|
|
nbconvert,
|
|
nbformat,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bayesian-optimization";
|
|
version = "3.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bayesian-optimization";
|
|
repo = "BayesianOptimization";
|
|
tag = "v${version}";
|
|
hash = "sha256-dq5R0/gqjSzQPAmYvtByJ6gT8pOiXcezfYlKpFLnryk=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
scikit-learn
|
|
numpy
|
|
scipy
|
|
colorama
|
|
packaging
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
jupyter
|
|
matplotlib
|
|
nbconvert
|
|
nbformat
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "bayes_opt" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Python implementation of global optimization with gaussian processes";
|
|
homepage = "https://github.com/bayesian-optimization/BayesianOptimization";
|
|
changelog = "https://github.com/bayesian-optimization/BayesianOptimization/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.juliendehos ];
|
|
};
|
|
}
|