summary refs log tree commit diff
path: root/pkgs/development/python-modules/scikit-optimize/default.nix
blob: f82dc947b066f2471a265109f8f0fbddb9e7f19a (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, scipy
, scikitlearn
, pyaml
, pytest
}:

buildPythonPackage rec {
  pname = "scikit-optimize";
  version = "0.6";

  src = fetchFromGitHub {
    owner = "scikit-optimize";
    repo = "scikit-optimize";
    rev = "v${version}";
    sha256 = "1srbb20k8ddhpcfxwdflapfh6xfyrd3dnclcg3bsfq1byrcmv0d4";
  };

  propagatedBuildInputs = [
    numpy
    scipy
    scikitlearn
    pyaml
  ];

  checkInputs = [
    pytest
  ];

  # remove --ignore at next release > 0.6
  checkPhase = ''
    pytest skopt --ignore skopt/tests/test_searchcv.py
  '';

  meta = with lib; {
    description = "Sequential model-based optimization toolbox";
    homepage = https://scikit-optimize.github.io/;
    license = licenses.bsd3;
    maintainers = [ maintainers.costrouc ];
  };
}