python312Packages.dask: 2025.1.0 -> 2025.2.0 (#381896)

This commit is contained in:
Gaétan Lepage
2025-03-07 21:20:02 +01:00
committed by GitHub
4 changed files with 129 additions and 17 deletions
@@ -1,9 +1,7 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# build-system
hatch-vcs,
@@ -78,6 +76,16 @@ buildPythonPackage rec {
disabledTests = [
# AssertionError: Regex pattern did not match.
"test_unknown_category_transform_array"
# ValueError: cannot broadcast shape (nan,) to shape (nan,)
# https://github.com/dask/dask-ml/issues/1012
"test_fit_array"
"test_fit_frame"
"test_fit_transform_frame"
"test_laziness"
"test_lr_score"
"test_ok"
"test_scoring_string"
];
__darwinAllowLocalNetworking = true;
@@ -38,14 +38,14 @@
buildPythonPackage rec {
pname = "dask";
version = "2025.1.0";
version = "2025.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dask";
repo = "dask";
tag = version;
hash = "sha256-KBqOyf471mNg3L9dYmR7IRSltEtC+VgC+6ptsoKgVmM=";
hash = "sha256-PpgzlaVWKW+aLbFtDztNjBMI79pmsiS3uN8su75Rako=";
};
postPatch = ''
@@ -57,8 +57,8 @@ buildPythonPackage rec {
--replace-fail "version=versioneer.get_version()," "version='${version}'," \
--replace-fail "cmdclass=versioneer.get_cmdclass()," ""
substituteInPlace pyproject.toml \
--replace-fail ', "versioneer[toml]==0.29"' ""
substituteInPlace pyproject.toml \
--replace-fail ', "versioneer[toml]==0.29"' ""
'';
build-system = [ setuptools ];
@@ -28,14 +28,14 @@
buildPythonPackage rec {
pname = "distributed";
version = "2025.1.0";
version = "2025.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dask";
repo = "distributed";
tag = version;
hash = "sha256-7ak0979nyapd5BSJnGgV5881Rc5AfhgG67PT2KC1NzQ=";
hash = "sha256-bpyON5rrZ+Xf6Vkmyd8UXe/MQJ9jEhjVE+5YkAJ5AeM=";
};
postPatch = ''
@@ -2,8 +2,7 @@
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchPypi,
fetchFromGitHub,
# build-system
setuptools-scm,
@@ -18,7 +17,7 @@
radio-beam,
tqdm,
# checks
# tests
aplpy,
pytest-astropy,
pytestCheckHook,
@@ -29,10 +28,11 @@ buildPythonPackage rec {
version = "0.6.6";
pyproject = true;
src = fetchPypi {
pname = "spectral_cube";
inherit version;
hash = "sha256-bjBghr5WrfC4NH5cyiy9RUiCmJSUHBtyD61bd1i/4kM=";
src = fetchFromGitHub {
owner = "radio-astro-tools";
repo = "spectral-cube";
tag = "v${version}";
hash = "sha256-fBjbovBXqUfX8rG8gEM3BY5p0BLfa4n1PMbPpPJPDgQ=";
};
build-system = [ setuptools-scm ];
@@ -59,9 +59,113 @@ buildPythonPackage rec {
cd build/lib
'';
# On x86_darwin, this test fails with "Fatal Python error: Aborted"
# when sandbox = true.
pytestFlagsArray = [
# FutureWarning: Can't acquire a memory view of a Dask array. This will raise in the future
# https://github.com/radio-astro-tools/spectral-cube/issues/943
"-W"
"ignore::FutureWarning"
];
disabledTests =
[
# AttributeError: 'DaskSpectralCube' object has no attribute 'dtype'
"test_key_access_valid"
# For some reason, those tests are failing with "FutureWarning: Can't acquire a memory view of a Dask array."
# without being caught by the `-W ignore::FutureWarning` flag above.
"test_1d_slice_reductions"
"test_1d_slice_round"
"test_1d_slices"
"test_1dcomparison_mask_1d_index"
"test_1dmask_indexing"
"test_2dcomparison_mask_1d_index"
"test_3d_beams_roundtrip"
"test_4d_beams_roundtrip"
"test_LDO_arithmetic"
"test_add"
"test_apply_everywhere"
"test_apply_everywhere_plusminus"
"test_apply_function_parallel_shape"
"test_attributes"
"test_basic_arrayness"
"test_basic_unit_conversion"
"test_basic_unit_conversion_beams"
"test_beam_jpix_checks_array"
"test_beam_jtok"
"test_beam_jtok_2D"
"test_beam_jtok_array"
"test_beam_proj_meta"
"test_beams_convolution"
"test_beams_convolution_equal"
"test_casa_read_basic"
"test_convolution"
"test_convolve_to_equal"
"test_convolve_to_jybeam_multibeams"
"test_convolve_to_jybeam_onebeam"
"test_convolve_to_with_bad_beams"
"test_cube_add"
"test_cube_stacking"
"test_cube_with_swapped_axes"
"test_div"
"test_filled"
"test_getitem"
"test_getitem_vrsc"
"test_how_withfluxunit"
"test_initialization_from_units"
"test_mask_none"
"test_mosaic_cube"
"test_mul"
"test_mul_cubes"
"test_multibeams_unit_conversions_general_1D"
"test_numpy_ma_tools"
"test_oned_slic"
"test_oned_slice_beams"
"test_padding_direction"
"test_pow"
"test_preserves_header_meta_values"
"test_proj_meta"
"test_regression_719"
"test_repr_1d"
"test_slice_wcs"
"test_slicing"
"test_spatial_smooth_g2d"
"test_spatial_smooth_maxfilter"
"test_spatial_smooth_median"
"test_spatial_smooth_t2d"
"test_spatial_world"
"test_spectral_interpolate"
"test_spectral_interpolate_reversed"
"test_spectral_interpolate_varying_chunksize"
"test_spectral_interpolate_with_fillvalue"
"test_spectral_interpolate_with_mask"
"test_spectral_slice_preserve_units"
"test_spectral_smooth"
"test_spectral_units"
"test_stacking"
"test_stacking_badvels"
"test_stacking_noisy"
"test_stacking_reversed_specaxis"
"test_stacking_woffset"
"test_stacking_wpadding"
"test_subtract"
"test_subtract_cubes"
"test_unit_conversions_general"
"test_unit_conversions_general_1D"
"test_unit_conversions_general_2D"
"test_varyres_mask"
"test_varyres_spectra"
"test_varyres_unitconversion_roundtrip"
"test_with_flux_unit"
"test_with_spectral_unit"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Flaky: AssertionError: assert diffvals.max()*u.B <= 1*u.MB
"test_reproject_3D_memory"
];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
# On x86_darwin, this test fails with "Fatal Python error: Aborted"
# when sandbox = true.
"spectral_cube/tests/test_visualization.py"
];