depot/third_party/nixpkgs/pkgs/development/python-modules/dask-ml/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

65 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, dask
, numpy, toolz # dask[array]
, numba
, pandas
, scikit-learn
, scipy
, dask-glm
, six
, multipledispatch
, packaging
, distributed
, setuptools-scm
}:
buildPythonPackage rec {
version = "1.9.0";
pname = "dask-ml";
disabled = pythonOlder "3.6"; # >= 3.6
src = fetchPypi {
inherit pname version;
sha256 = "2f376a7114133b484a6d393f62298473116fc49c79ec7d50d5b031d752f54307";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
dask
dask-glm
distributed
multipledispatch
numba
numpy
packaging
pandas
scikit-learn
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 lib; {
homepage = "https://github.com/dask/dask-ml";
description = "Scalable Machine Learn with Dask";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}