2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-09-13 19:12:51 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cloudpickle
|
|
|
|
, dask
|
2022-06-03 12:06:53 +00:00
|
|
|
, distributed
|
|
|
|
, fetchPypi
|
2018-09-13 19:12:51 +00:00
|
|
|
, multipledispatch
|
2021-04-23 08:53:37 +00:00
|
|
|
, pytestCheckHook
|
2022-06-03 12:06:53 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scikit-learn
|
|
|
|
, scipy
|
|
|
|
, setuptools-scm
|
|
|
|
, sparse
|
2018-09-13 19:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-glm";
|
2022-06-03 12:06:53 +00:00
|
|
|
version = "0.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-09-13 19:12:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-03 12:06:53 +00:00
|
|
|
hash = "sha256-WLhs6/BP5bnlgJLhxGfjLmDQHhG3H9xii6qp/G0a3uU=";
|
2018-09-13 19:12:51 +00:00
|
|
|
};
|
|
|
|
|
2022-06-03 12:06:53 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cloudpickle
|
|
|
|
distributed
|
|
|
|
multipledispatch
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
sparse
|
|
|
|
] ++ dask.optional-dependencies.array;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
sparse
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dask_glm"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Circular dependency with dask-ml
|
|
|
|
"dask_glm/tests/test_estimators.py"
|
|
|
|
# Test tries to imort an obsolete method
|
|
|
|
"dask_glm/tests/test_utils.py"
|
|
|
|
];
|
2018-09-13 19:12:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-13 19:12:51 +00:00
|
|
|
description = "Generalized Linear Models with Dask";
|
2022-06-03 12:06:53 +00:00
|
|
|
homepage = "https://github.com/dask/dask-glm/";
|
2018-09-13 19:12:51 +00:00
|
|
|
license = licenses.bsd3;
|
2022-06-03 12:06:53 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2018-09-13 19:12:51 +00:00
|
|
|
};
|
|
|
|
}
|