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