nixpkgs/pkgs/development/python-modules/gpyopt/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
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.
2023-01-21 12:00:00 +00:00

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 ];
};
}