mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
34 lines
855 B
Nix
34 lines
855 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, setuptools
|
|
, numpy, scipy, gpy, emcee, nose, cython }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "GPyOpt";
|
|
version = "1.2.6";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = pname;
|
|
owner = "SheffieldML";
|
|
rev = "v${version}";
|
|
sha256 = "1sv13svaks67i9z560746hz4hslakdna0zd3gxj828il1cv7cslm";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
doCheck = false; # requires several packages not available in Nix
|
|
|
|
nativeCheckInputs = [ nose ];
|
|
|
|
checkPhase = "nosetests -v GPyOpt/testing";
|
|
|
|
propagatedBuildInputs = [ setuptools numpy scipy gpy emcee ];
|
|
|
|
pythonImportsCheck = [ "GPyOpt" ];
|
|
|
|
meta = with lib; {
|
|
description = "Bayesian optimization toolbox in Python";
|
|
homepage = "https://sheffieldml.github.io/GPyOpt";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|