depot/third_party/nixpkgs/pkgs/development/python-modules/dask-ml/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

63 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, dask
, dask-glm
, distributed
, fetchPypi
, multipledispatch
, numba
, numpy
, packaging
, pandas
, pythonOlder
, scikit-learn
, scipy
, setuptools-scm
}:
buildPythonPackage rec {
pname = "dask-ml";
version = "2022.5.27";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-Y2nTk0GSvMGSP87oTD+4+8zsoQITeQEHC6Px2eOGzOQ=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
dask-glm
distributed
multipledispatch
numba
numpy
packaging
pandas
scikit-learn
scipy
] ++ dask.optional-dependencies.array
++ dask.optional-dependencies.dataframe;
# has non-standard build from source, and pypi doesn't include tests
doCheck = false;
pythonImportsCheck = [
"dask_ml"
"dask_ml.naive_bayes"
"dask_ml.wrappers"
"dask_ml.utils"
];
meta = with lib; {
description = "Scalable Machine Learn with Dask";
homepage = "https://github.com/dask/dask-ml";
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
};
}