python.pkgs.scikit-optimize: 0.6 -> 0.8.1

This fixes the build of scikit-optimize.
This commit is contained in:
Josef Kemetmüller 2020-09-14 20:34:31 +02:00 committed by Jon
parent c32441811f
commit b8f130e2b4

View file

@ -1,25 +1,29 @@
{ lib { lib
, isPy27
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, matplotlib
, numpy , numpy
, scipy , scipy
, scikitlearn , scikitlearn
, pyaml , pyaml
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "scikit-optimize"; pname = "scikit-optimize";
version = "0.6"; version = "0.8.1";
disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "scikit-optimize"; owner = "scikit-optimize";
repo = "scikit-optimize"; repo = "scikit-optimize";
rev = "v${version}"; rev = "v${version}";
sha256 = "1srbb20k8ddhpcfxwdflapfh6xfyrd3dnclcg3bsfq1byrcmv0d4"; sha256 = "1bz8gxccx8n99abw49j8h5zf3i568g5hcf8nz1yinma8jqhxjkjh";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
matplotlib
numpy numpy
scipy scipy
scikitlearn scikitlearn
@ -27,14 +31,9 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
]; ];
# remove --ignore at next release > 0.6
checkPhase = ''
pytest skopt --ignore skopt/tests/test_searchcv.py
'';
meta = with lib; { meta = with lib; {
description = "Sequential model-based optimization toolbox"; description = "Sequential model-based optimization toolbox";
homepage = "https://scikit-optimize.github.io/"; homepage = "https://scikit-optimize.github.io/";