pythonPackages.dask-xgboot: cleanup, add imports check

This commit is contained in:
Sandro Jäckel
2021-02-16 04:00:11 +01:00
parent eadea3e9d0
commit 499ce18520
@@ -4,8 +4,6 @@
, xgboost , xgboost
, dask , dask
, distributed , distributed
, pytest
, scikitlearn
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -17,14 +15,10 @@ buildPythonPackage rec {
sha256 = "3fbe1bf4344dc74edfbe9f928c7e3e6acc26dc57cefd8da8ae56a15469c6941c"; sha256 = "3fbe1bf4344dc74edfbe9f928c7e3e6acc26dc57cefd8da8ae56a15469c6941c";
}; };
checkInputs = [ pytest scikitlearn ];
propagatedBuildInputs = [ xgboost dask distributed ]; propagatedBuildInputs = [ xgboost dask distributed ];
checkPhase = ''
py.test dask_xgboost/tests/test_core.py
'';
doCheck = false; doCheck = false;
pythonImportsCheck = [ "dask-xdgboost" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/dask/dask-xgboost"; homepage = "https://github.com/dask/dask-xgboost";