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

65 lines
1.1 KiB
Nix
Raw Normal View History

2018-09-13 20:12:21 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
2018-09-13 20:12:21 +01:00
, dask
, numpy, toolz # dask[array]
, numba
, pandas
, scikitlearn
, scipy
, dask-glm
, six
, multipledispatch
, packaging
, pytest
, xgboost
, tensorflow
, joblib
, distributed
}:
buildPythonPackage rec {
2020-06-06 07:47:03 +01:00
version = "1.5.0";
2018-09-13 20:12:21 +01:00
pname = "dask-ml";
disabled = pythonOlder "3.6"; # >= 3.6
2018-09-13 20:12:21 +01:00
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:03 +01:00
sha256 = "8a9879b7d1642ed8cd48115d81f92a246eb7ffeadc42748053c5339a56f569b4";
2018-09-13 20:12:21 +01:00
};
propagatedBuildInputs = [
dask
dask-glm
distributed
multipledispatch
numba
numpy
packaging
pandas
scikitlearn
scipy
six
toolz
];
2018-09-13 20:12:21 +01:00
# has non-standard build from source, and pypi doesn't include tests
2018-09-13 20:12:21 +01:00
doCheck = false;
# in lieu of proper tests
pythonImportsCheck = [
"dask_ml"
"dask_ml.naive_bayes"
"dask_ml.wrappers"
"dask_ml.utils"
];
2018-09-13 20:12:21 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/dask/dask-ml";
2018-09-13 20:12:21 +01:00
description = "Scalable Machine Learn with Dask";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}