forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, dask
|
|
, numpy, toolz # dask[array]
|
|
, numba
|
|
, pandas
|
|
, scikitlearn
|
|
, scipy
|
|
, dask-glm
|
|
, six
|
|
, multipledispatch
|
|
, packaging
|
|
, pytest
|
|
, xgboost
|
|
, tensorflow
|
|
, joblib
|
|
, distributed
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.7.0";
|
|
pname = "dask-ml";
|
|
disabled = pythonOlder "3.6"; # >= 3.6
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5f93e8560217ebbc5a2254eaf705e9cad8e1c82012567c658e26464a74fbab76";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dask
|
|
dask-glm
|
|
distributed
|
|
multipledispatch
|
|
numba
|
|
numpy
|
|
packaging
|
|
pandas
|
|
scikitlearn
|
|
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 ];
|
|
};
|
|
}
|