summary refs log tree commit diff
path: root/pkgs/development/python-modules/gpyopt/default.nix
blob: 3ad5cb7d89b5d7bcac8ab0ec1bdb6cbebf4545c2 (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
{ stdenv, buildPythonPackage, fetchFromGitHub, setuptools
, numpy, scipy, gpy, emcee, nose }:

buildPythonPackage rec {
  pname = "GPyOpt";
  version = "unstable-2019-09-25";

  src = fetchFromGitHub {
    repo   = pname;
    owner  = "SheffieldML";
    rev    = "249b8ff29c52c12ed867f145a627d529372022d8";
    sha256 = "1ywaw1kpdr7dv4s4cr7afmci86sw7w61178gs45b0lq08652zdlb";
  };

  doCheck = false;  # requires several packages not available in Nix

  checkInputs = [ nose ];

  checkPhase = "nosetests -v GPyOpt/testing";

  propagatedBuildInputs = [ setuptools numpy scipy gpy emcee ];

  meta = with stdenv.lib; {
    description = "Bayesian optimization toolbox in Python";
    homepage = https://sheffieldml.github.io/GPyOpt;
    license = licenses.bsd3;
    maintainers = with maintainers; [ bcdarwin ];
  };
}