python312Packages.dask: 2025.2.0 -> 2025.3.0 (#391973)

This commit is contained in:
Gaétan Lepage
2025-03-26 00:11:24 +01:00
committed by GitHub
5 changed files with 25 additions and 7 deletions
@@ -72,6 +72,11 @@ buildPythonPackage rec {
"test_basic_root_works"
# Flaky. https://github.com/dask-contrib/dask-awkward/issues/506.
"test_distance_behavior"
# RuntimeError: Attempting to use an asynchronous Client in a synchronous context of `dask.compute`
# https://github.com/dask-contrib/dask-awkward/issues/573
"test_persist"
"test_ravel_fail"
];
__darwinAllowLocalNetworking = true;
@@ -69,8 +69,12 @@ buildPythonPackage rec {
];
disabledTestPaths = [
# AttributeError: module 'numpy' has no attribute 'product'
"tests/test_svd.py"
# RuntimeError: Attempting to use an asynchronous Client in a synchronous context of `dask.compute`
# https://github.com/dask/dask-ml/issues/1016
"tests/model_selection/test_hyperband.py"
"tests/model_selection/test_incremental.py"
"tests/model_selection/test_incremental_warns.py"
"tests/model_selection/test_successive_halving.py"
];
disabledTests = [
@@ -38,14 +38,14 @@
buildPythonPackage rec {
pname = "dask";
version = "2025.2.0";
version = "2025.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dask";
repo = "dask";
tag = version;
hash = "sha256-PpgzlaVWKW+aLbFtDztNjBMI79pmsiS3uN8su75Rako=";
hash = "sha256-j25+DfWReonXKqxkX9OVHjKo+Indh13rlBE5PyGe69c=";
};
postPatch = ''
@@ -67,10 +67,10 @@ buildPythonPackage rec {
click
cloudpickle
fsspec
importlib-metadata
packaging
partd
pyyaml
importlib-metadata
toolz
];
@@ -28,14 +28,14 @@
buildPythonPackage rec {
pname = "distributed";
version = "2025.2.0";
version = "2025.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dask";
repo = "distributed";
tag = version;
hash = "sha256-bpyON5rrZ+Xf6Vkmyd8UXe/MQJ9jEhjVE+5YkAJ5AeM=";
hash = "sha256-+vegdEXhQi3ns5iMs6FavKnAlRNIWCUNyZENVBWZsuQ=";
};
postPatch = ''
@@ -39,6 +39,15 @@ buildPythonPackage rec {
hash = "sha256-uudBzxVGt3RW4ppDrFYfA9LMa2xPfs3FTBzVS19FjB4=";
};
# ImportError: cannot import name 'quote' from 'dask.base'
# https://github.com/dask/dask/issues/11843
postPatch = ''
substituteInPlace odc/loader/_builder.py \
--replace-fail \
"from dask.base import quote, tokenize" \
"from dask.base import tokenize; from dask.core import quote"
'';
build-system = [
setuptools
];