mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, dask
|
|
, numpy, toolz # dask[array]
|
|
, numba
|
|
, pandas
|
|
, scikitlearn
|
|
, scipy
|
|
, dask-glm
|
|
, six
|
|
, multipledispatch
|
|
, packaging
|
|
, pytest
|
|
, xgboost
|
|
, tensorflow
|
|
, joblib
|
|
, distributed
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.2.0";
|
|
pname = "dask-ml";
|
|
disabled = pythonOlder "3.6"; # >= 3.6
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0ppg8licvkxz1af2q87cxms2p6ss2r5d4fdkbcivph56r0v0ci2k";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dask
|
|
dask-glm
|
|
distributed
|
|
multipledispatch
|
|
numba
|
|
numpy
|
|
packaging
|
|
pandas
|
|
scikitlearn
|
|
scipy
|
|
six
|
|
toolz
|
|
];
|
|
|
|
# has non-standard build from source, and pypi doesn't include tests
|
|
doCheck = false;
|
|
|
|
# in lieu of proper tests
|
|
pythonImportsCheck = [
|
|
"dask_ml"
|
|
"dask_ml.naive_bayes"
|
|
"dask_ml.wrappers"
|
|
"dask_ml.utils"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/dask/dask-ml;
|
|
description = "Scalable Machine Learn with Dask";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|