summary refs log tree commit diff
path: root/pkgs/development/python-modules/pygbm/default.nix
blob: 0d2747c1cb46d1dcf250af92da3121210a54fede (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
45
46
47
{ lib
, buildPythonPackage
, fetchFromGitHub
, scipy
, numpy
, numba
, scikitlearn
, pytest
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pygbm";
  version = "0.1.0";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "ogrisel";
    repo = pname;
    rev = "v${version}";
    sha256 = "1qg2md86d0z5aa6jn8kj3rxsippsqsccx1dbraspdsdkycncvww3";
  };

  propagatedBuildInputs = [
    scipy
    numpy
    numba
    scikitlearn
  ];

  checkInputs = [
    pytest
  ];

  checkPhase = ''
    # numerical rounding error in test
    pytest -k "not test_derivatives"
  '';

  meta = with lib; {
    description = "Experimental Gradient Boosting Machines in Python";
    homepage = "https://github.com/ogrisel/pygbm";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
    broken = true;
  };
}