2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-09-13 20:12:21 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-12-10 08:18:07 +00:00
|
|
|
, pythonOlder
|
2018-09-13 20:12:21 +01:00
|
|
|
, dask
|
|
|
|
, numpy, toolz # dask[array]
|
|
|
|
, numba
|
|
|
|
, pandas
|
|
|
|
, scikitlearn
|
|
|
|
, scipy
|
|
|
|
, dask-glm
|
|
|
|
, six
|
|
|
|
, multipledispatch
|
|
|
|
, packaging
|
|
|
|
, distributed
|
2021-04-23 08:09:29 +01:00
|
|
|
, setuptools-scm
|
2018-09-13 20:12:21 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-02-06 05:02:14 +00:00
|
|
|
version = "1.8.0";
|
2018-09-13 20:12:21 +01:00
|
|
|
pname = "dask-ml";
|
2019-12-10 08:18:07 +00:00
|
|
|
disabled = pythonOlder "3.6"; # >= 3.6
|
2018-09-13 20:12:21 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-06 05:02:14 +00:00
|
|
|
sha256 = "8fc4ac3ec1915e382fb8cae9ff1ec9b5ac1bee0b6f4c6975d6e6cb7191a4a815";
|
2018-09-13 20:12:21 +01:00
|
|
|
};
|
|
|
|
|
2019-12-10 08:18:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dask
|
|
|
|
dask-glm
|
|
|
|
distributed
|
|
|
|
multipledispatch
|
|
|
|
numba
|
|
|
|
numpy
|
|
|
|
packaging
|
|
|
|
pandas
|
|
|
|
scikitlearn
|
|
|
|
scipy
|
|
|
|
six
|
|
|
|
toolz
|
2021-04-23 08:09:29 +01:00
|
|
|
setuptools-scm
|
2019-12-10 08:18:07 +00:00
|
|
|
];
|
2018-09-13 20:12:21 +01:00
|
|
|
|
2019-12-10 08:18:07 +00:00
|
|
|
# has non-standard build from source, and pypi doesn't include tests
|
2018-09-13 20:12:21 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-12-10 08:18:07 +00:00
|
|
|
# in lieu of proper tests
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dask_ml"
|
|
|
|
"dask_ml.naive_bayes"
|
|
|
|
"dask_ml.wrappers"
|
|
|
|
"dask_ml.utils"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|