depot/third_party/nixpkgs/pkgs/development/python-modules/dask-ml/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03: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 = "2023.3.24";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-lsCQ220yg2U24/Ccpk3rWZ6GRYeqjj1NLGtK9YhzMwc=";
};
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 ];
};
}