2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, setuptools
|
2021-06-28 23:13:55 +00:00
|
|
|
, numpy, scipy, gpy, emcee, nose, cython }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "GPyOpt";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "SheffieldML";
|
2021-06-28 23:13:55 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1sv13svaks67i9z560746hz4hslakdna0zd3gxj828il1cv7cslm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false; # requires several packages not available in Nix
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = "nosetests -v GPyOpt/testing";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ setuptools numpy scipy gpy emcee ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
pythonImportsCheck = [ "GPyOpt" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Bayesian optimization toolbox in Python";
|
|
|
|
homepage = "https://sheffieldml.github.io/GPyOpt";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|