mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
48 lines
830 B
Nix
48 lines
830 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;
|
|
};
|
|
}
|