2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cloudpickle
|
|
|
|
, dask
|
2022-06-26 10:26:21 +00:00
|
|
|
, distributed
|
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, multipledispatch
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
2022-06-26 10:26:21 +00:00
|
|
|
, pythonOlder
|
|
|
|
, scikit-learn
|
|
|
|
, scipy
|
|
|
|
, setuptools-scm
|
|
|
|
, sparse
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-glm";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.3.2";
|
2022-06-26 10:26:21 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-yUelZoZmmKAdeZeK5zIzy16DitXq1ghRQ1gsXpMLmko=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cloudpickle
|
|
|
|
distributed
|
|
|
|
multipledispatch
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
sparse
|
|
|
|
] ++ dask.optional-dependencies.array;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
disabledTests = [
|
|
|
|
# missing fixture with distributed>=2022.8.0
|
|
|
|
"test_determinism_distributed"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generalized Linear Models with Dask";
|
2022-06-26 10:26:21 +00:00
|
|
|
homepage = "https://github.com/dask/dask-glm/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|