mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 14:53:52 +00:00
python310Packages.dask-glm: handle optional dependencies
This commit is contained in:
parent
077cf7c76b
commit
fc78ec9679
@ -1,33 +1,63 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, cloudpickle
|
, cloudpickle
|
||||||
, dask
|
, dask
|
||||||
, numpy, toolz # dask[array]
|
, distributed
|
||||||
|
, fetchPypi
|
||||||
, multipledispatch
|
, multipledispatch
|
||||||
, setuptools-scm
|
|
||||||
, scipy
|
|
||||||
, scikit-learn
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, scikit-learn
|
||||||
|
, scipy
|
||||||
|
, setuptools-scm
|
||||||
|
, sparse
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.2.0";
|
|
||||||
pname = "dask-glm";
|
pname = "dask-glm";
|
||||||
|
version = "0.2.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "58b86cebf04fe5b9e58092e1c467e32e60d01e11b71fdc628baaa9fc6d1adee5";
|
hash = "sha256-WLhs6/BP5bnlgJLhxGfjLmDQHhG3H9xii6qp/G0a3uU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
nativeBuildInputs = [
|
||||||
checkInputs = [ pytestCheckHook ];
|
setuptools-scm
|
||||||
propagatedBuildInputs = [ cloudpickle dask numpy toolz multipledispatch scipy scikit-learn ];
|
];
|
||||||
|
|
||||||
|
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"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/dask/dask-glm/";
|
|
||||||
description = "Generalized Linear Models with Dask";
|
description = "Generalized Linear Models with Dask";
|
||||||
|
homepage = "https://github.com/dask/dask-glm/";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ costrouc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user