depot/third_party/nixpkgs/pkgs/development/python-modules/pygbm/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

47 lines
832 B
Nix

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