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

36 lines
604 B
Nix
Raw Normal View History

{ buildPythonPackage
2019-06-03 16:18:03 +01:00
, pytest
, nose
, scipy
2019-06-03 16:18:03 +01:00
, scikitlearn
, xgboost
, substituteAll
2019-06-03 16:18:03 +01:00
, pandas
, matplotlib
, graphviz
, datatable
}:
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 ];
2019-06-03 16:18:03 +01:00
checkInputs = [ nose pytest scikitlearn pandas matplotlib graphviz datatable ];
checkPhase = ''
ln -sf ../demo .
nosetests ../tests/python
'';
}