2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2024-05-15 15:35:15 +00:00
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, dask
|
2024-05-15 15:35:15 +00:00
|
|
|
, dask-expr
|
2022-06-16 17:23:12 +00:00
|
|
|
, dask-glm
|
|
|
|
, distributed
|
|
|
|
, multipledispatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, numba
|
2022-06-16 17:23:12 +00:00
|
|
|
, numpy
|
|
|
|
, packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
, pandas
|
2021-05-20 23:08:51 +00:00
|
|
|
, scikit-learn
|
2020-04-24 23:36:52 +00:00
|
|
|
, scipy
|
2024-05-15 15:35:15 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-ml";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2024.4.4";
|
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = "dask-ml";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-ZiBpCk3b4Tk0Hwb4uapJLEx+Nb/qHFROCnkBTNGDzoU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
2021-05-20 23:08:51 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
|
|
|
dask-expr
|
2020-04-24 23:36:52 +00:00
|
|
|
dask-glm
|
|
|
|
distributed
|
|
|
|
multipledispatch
|
|
|
|
numba
|
|
|
|
numpy
|
|
|
|
packaging
|
|
|
|
pandas
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2020-04-24 23:36:52 +00:00
|
|
|
scipy
|
2022-06-26 10:26:21 +00:00
|
|
|
] ++ dask.optional-dependencies.array
|
|
|
|
++ dask.optional-dependencies.dataframe;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dask_ml"
|
|
|
|
"dask_ml.naive_bayes"
|
|
|
|
"dask_ml.wrappers"
|
|
|
|
"dask_ml.utils"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scalable Machine Learn with Dask";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/dask/dask-ml";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|