Files
nixpkgs/pkgs/development/python-modules/xgboost/default.nix
T

31 lines
489 B
Nix
Raw Normal View History

2018-03-14 18:17:55 -07:00
{ stdenv
, buildPythonPackage
, nose
, scipy
, xgboost
2018-07-19 13:27:22 +02:00
, substituteAll
2018-03-14 18:17:55 -07:00
}:
buildPythonPackage rec {
2018-06-23 15:27:58 +02:00
pname = "xgboost";
2018-03-14 18:17:55 -07:00
inherit (xgboost) version src meta;
2018-07-19 13:27:22 +02:00
patches = [
(substituteAll {
src = ./lib-path-for-python.patch;
libpath = "${xgboost}/lib";
})
];
postPatch = "cd python-package";
2018-03-14 18:17:55 -07:00
propagatedBuildInputs = [ scipy ];
2018-07-19 13:27:22 +02:00
buildInputs = [ xgboost ];
2018-03-14 18:17:55 -07:00
checkInputs = [ nose ];
2018-07-19 13:27:22 +02:00
checkPhase = ''
ln -sf ../demo .
nosetests ../tests/python
2018-03-14 18:17:55 -07:00
'';
}