2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, setuptools
|
2021-06-19 21:27:41 +00:00
|
|
|
, numpy, scipy, gpy, emcee, nose, cython }:
|
2019-11-15 21:04:45 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "GPyOpt";
|
2021-06-19 21:27:41 +00:00
|
|
|
version = "1.2.6";
|
2019-11-15 21:04:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = pname;
|
|
|
|
owner = "SheffieldML";
|
2021-06-19 21:27:41 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1sv13svaks67i9z560746hz4hslakdna0zd3gxj828il1cv7cslm";
|
2019-11-15 21:04:45 +00:00
|
|
|
};
|
|
|
|
|
2021-06-19 21:27:41 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
2019-11-15 21:04:45 +00:00
|
|
|
doCheck = false; # requires several packages not available in Nix
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = "nosetests -v GPyOpt/testing";
|
|
|
|
|
2019-11-19 03:20:51 +00:00
|
|
|
propagatedBuildInputs = [ setuptools numpy scipy gpy emcee ];
|
2019-11-15 21:04:45 +00:00
|
|
|
|
2021-06-19 21:27:41 +00:00
|
|
|
pythonImportsCheck = [ "GPyOpt" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-11-15 21:04:45 +00:00
|
|
|
description = "Bayesian optimization toolbox in Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sheffieldml.github.io/GPyOpt";
|
2019-11-15 21:04:45 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|