depot/third_party/nixpkgs/pkgs/development/python-modules/dask-ml/default.nix

66 lines
1.1 KiB
Nix
Raw Normal View History

{ 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 = "2022.1.22";
pname = "dask-ml";
disabled = pythonOlder "3.6"; # >= 3.6
src = fetchPypi {
inherit pname version;
sha256 = "21a128e9f4f10e3b39cf82b36266eae28b17d16f2f6aa351bd73eb361e49326a";
};
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 ];
};
}