1{ lib, buildPythonPackage, fetchFromGitHub, setuptools
2, numpy, scipy, gpy, emcee, nose, cython }:
3
4buildPythonPackage rec {
5 pname = "GPyOpt";
6 version = "1.2.6";
7
8 src = fetchFromGitHub {
9 repo = pname;
10 owner = "SheffieldML";
11 rev = "v${version}";
12 sha256 = "1sv13svaks67i9z560746hz4hslakdna0zd3gxj828il1cv7cslm";
13 };
14
15 nativeBuildInputs = [ cython ];
16
17 doCheck = false; # requires several packages not available in Nix
18
19 checkInputs = [ nose ];
20
21 checkPhase = "nosetests -v GPyOpt/testing";
22
23 propagatedBuildInputs = [ setuptools numpy scipy gpy emcee ];
24
25 pythonImportsCheck = [ "GPyOpt" ];
26
27 meta = with lib; {
28 description = "Bayesian optimization toolbox in Python";
29 homepage = "https://sheffieldml.github.io/GPyOpt";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ bcdarwin ];
32 };
33}