nixpkgs/pkgs/development/python-modules/gpyopt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
849 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, setuptools
, numpy, scipy, gpy, emcee, nose, cython }:
2019-11-15 21:04:45 +00:00
buildPythonPackage rec {
pname = "GPyOpt";
version = "1.2.6";
2019-11-15 21:04:45 +00:00
src = fetchFromGitHub {
repo = pname;
owner = "SheffieldML";
rev = "v${version}";
sha256 = "1sv13svaks67i9z560746hz4hslakdna0zd3gxj828il1cv7cslm";
2019-11-15 21:04:45 +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";
propagatedBuildInputs = [ setuptools numpy scipy gpy emcee ];
2019-11-15 21:04:45 +00:00
pythonImportsCheck = [ "GPyOpt" ];
meta = with lib; {
2019-11-15 21:04:45 +00:00
description = "Bayesian optimization toolbox in Python";
homepage = "https://sheffieldml.github.io/GPyOpt";
2019-11-15 21:04:45 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
};
}