1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, python
5, scikitlearn
6, scipy
7, pytest
8}:
9
10buildPythonPackage rec {
11 pname = "bayesian-optimization";
12 version = "1.1.0";
13
14 src = fetchFromGitHub {
15 owner = "fmfn";
16 repo = "BayesianOptimization";
17 rev = "v${version}";
18 sha256 = "0ylip9xdi0cjzmdayxxpazdfaa9dl0sdcl2qsfn3p0cipj59bdvd";
19 };
20
21 propagatedBuildInputs = [
22 scikitlearn
23 scipy
24 ];
25
26 checkInputs = [ pytest ];
27 checkPhase = ''
28 pytest tests
29 '';
30
31 meta = with lib; {
32 description = "A Python implementation of global optimization with gaussian processes";
33 homepage = "https://github.com/fmfn/BayesianOptimization";
34 license = licenses.mit;
35 maintainers = [ maintainers.juliendehos ];
36 };
37}