1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/xgboost/default.nix

31 lines
489 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, nose
, scipy
, xgboost
, substituteAll
}:
buildPythonPackage rec {
pname = "xgboost";
inherit (xgboost) version src meta;
patches = [
(substituteAll {
src = ./lib-path-for-python.patch;
libpath = "${xgboost}/lib";
})
];
postPatch = "cd python-package";
propagatedBuildInputs = [ scipy ];
buildInputs = [ xgboost ];
checkInputs = [ nose ];
checkPhase = ''
ln -sf ../demo .
nosetests ../tests/python
'';
}