nixpkgs/pkgs/development/python-modules/dask-xgboost/default.nix

36 lines
713 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, xgboost
, dask
, distributed
, pytest
, scikitlearn
}:
buildPythonPackage rec {
2019-10-16 11:43:04 +02:00
version = "0.1.7";
pname = "dask-xgboost";
src = fetchPypi {
inherit pname version;
2019-10-16 11:43:04 +02:00
sha256 = "c4eb7989e0b4bcab956c5ab5f89c3419016615ad1ca8f6596ca471e402aae43b";
};
checkInputs = [ pytest scikitlearn ];
propagatedBuildInputs = [ xgboost dask distributed ];
checkPhase = ''
py.test dask_xgboost/tests/test_core.py
'';
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/dask/dask-xgboost;
description = "Interactions between Dask and XGBoost";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}