python312Packages.dask: 2024.12.1 -> 2025.1.0; various fixes (#381082)

authored by Nick Cao and committed by GitHub 63a372c7 529f6e09

+275 -368
+2 -2
pkgs/development/python-modules/awkward-cpp/default.nix
··· 11 11 12 12 buildPythonPackage rec { 13 13 pname = "awkward-cpp"; 14 - version = "43"; 14 + version = "44"; 15 15 pyproject = true; 16 16 17 17 src = fetchPypi { 18 18 pname = "awkward_cpp"; 19 19 inherit version; 20 - hash = "sha256-we11WW7IKvZm2ghLW/gF2bcsg1MtA10rZeB5WQXSXq0="; 20 + hash = "sha256-jcSZKI1tFrLqILUaJ9UEflGiR7aqz8vLOzAsrW08h9g="; 21 21 }; 22 22 23 23 build-system = [
+29 -20
pkgs/development/python-modules/awkward/default.nix
··· 1 1 { 2 2 lib, 3 + stdenv, 3 4 buildPythonPackage, 4 - pythonOlder, 5 5 fetchFromGitHub, 6 6 7 7 # build-system ··· 13 13 fsspec, 14 14 numpy, 15 15 packaging, 16 - typing-extensions, 17 - importlib-metadata, 18 16 19 - # checks 17 + # tests 20 18 numba, 21 - setuptools, 22 19 numexpr, 23 20 pandas, 24 21 pyarrow, ··· 28 25 29 26 buildPythonPackage rec { 30 27 pname = "awkward"; 31 - version = "2.7.2"; 28 + version = "2.7.4"; 32 29 pyproject = true; 33 30 34 31 src = fetchFromGitHub { 35 32 owner = "scikit-hep"; 36 33 repo = "awkward"; 37 34 tag = "v${version}"; 38 - hash = "sha256-nOKMwAQ5t8tc64bEKz0j8JxxoVQQu39Iu8Zr9cqSx7A="; 35 + hash = "sha256-OXSl+8sfrx+JlLu40wHf+98WVNNwm9uxvsnGXRDztDg="; 39 36 }; 40 37 41 38 build-system = [ ··· 43 40 hatchling 44 41 ]; 45 42 46 - dependencies = 47 - [ 48 - awkward-cpp 49 - fsspec 50 - numpy 51 - packaging 52 - ] 53 - ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ] 54 - ++ lib.optionals (pythonOlder "3.12") [ importlib-metadata ]; 43 + dependencies = [ 44 + awkward-cpp 45 + fsspec 46 + numpy 47 + packaging 48 + ]; 55 49 56 50 dontUseCmakeConfigure = true; 57 51 ··· 60 54 nativeCheckInputs = [ 61 55 fsspec 62 56 numba 63 - setuptools 64 57 numexpr 65 58 pandas 66 59 pyarrow ··· 68 61 pytestCheckHook 69 62 ]; 70 63 71 - disabledTestPaths = [ 72 - # Need to be run on a GPU platform. 73 - "tests-cuda" 64 + disabledTests = [ 65 + # pyarrow.lib.ArrowInvalid 66 + "test_recordarray" 74 67 ]; 68 + 69 + disabledTestPaths = 70 + [ 71 + # Need to be run on a GPU platform. 72 + "tests-cuda" 73 + ] 74 + ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ 75 + # Fatal Python error: Segmentation fault at: 76 + # numba/typed/typedlist.py", line 344 in append 77 + "tests/test_0118_numba_cpointers.py" 78 + "tests/test_0397_arrays_as_constants_in_numba.py" 79 + "tests/test_1677_array_builder_in_numba.py" 80 + "tests/test_2055_array_builder_check.py" 81 + "tests/test_2349_growablebuffer_in_numba.py" 82 + "tests/test_2408_layoutbuilder_in_numba.py" 83 + ]; 75 84 76 85 meta = { 77 86 description = "Manipulate JSON-like data with NumPy-like idioms";
+8
pkgs/development/python-modules/coffea/default.nix
··· 57 57 hatch-vcs 58 58 ]; 59 59 60 + pythonRelaxDeps = [ 61 + "dask" 62 + ]; 63 + 60 64 dependencies = [ 61 65 aiohttp 62 66 awkward ··· 106 110 # AssertionError: bug in Awkward Array: attempt to convert TypeTracerArray into a concrete array 107 111 "test_apply_to_fileset" 108 112 "test_lorentz_behavior" 113 + 114 + # ValueError: The array to mask was deleted before it could be masked. 115 + # If you want to construct this mask, you must either keep the array alive or use 'ak.mask' explicitly. 116 + "test_read_nanomc" 109 117 ]; 110 118 111 119 __darwinAllowLocalNetworking = true;
+6 -6
pkgs/development/python-modules/dask-awkward/default.nix
··· 16 16 # optional-dependencies 17 17 pyarrow, 18 18 19 - # checks 19 + # tests 20 20 dask-histogram, 21 21 distributed, 22 22 hist, ··· 27 27 28 28 buildPythonPackage rec { 29 29 pname = "dask-awkward"; 30 - version = "2024.12.2"; 30 + version = "2025.2.0"; 31 31 pyproject = true; 32 32 33 33 src = fetchFromGitHub { 34 34 owner = "dask-contrib"; 35 35 repo = "dask-awkward"; 36 36 tag = version; 37 - hash = "sha256-pL1LDW/q78V/c3Bha38k40018MFO+i8X6htYNdcsy7s="; 37 + hash = "sha256-hhAY2cPUOYnP86FGsLvxlMeoEwY+sTrjPMKyuZrO0/M="; 38 38 }; 39 39 40 40 build-system = [ ··· 53 53 io = [ pyarrow ]; 54 54 }; 55 55 56 - checkInputs = [ 57 - dask-histogram 56 + nativeCheckInputs = [ 57 + # dask-histogram (circular dependency) 58 58 distributed 59 59 hist 60 60 pandas ··· 86 86 meta = { 87 87 description = "Native Dask collection for awkward arrays, and the library to use it"; 88 88 homepage = "https://github.com/dask-contrib/dask-awkward"; 89 - changelog = "https://github.com/dask-contrib/dask-awkward/releases/tag/${src.tag}"; 89 + changelog = "https://github.com/dask-contrib/dask-awkward/releases/tag/${version}"; 90 90 license = lib.licenses.bsd3; 91 91 maintainers = with lib.maintainers; [ veprbl ]; 92 92 };
-65
pkgs/development/python-modules/dask-expr/default.nix
··· 1 - { 2 - lib, 3 - buildPythonPackage, 4 - fetchFromGitHub, 5 - 6 - # build-system 7 - setuptools, 8 - versioneer, 9 - 10 - # dependencies 11 - dask, 12 - pandas, 13 - pyarrow, 14 - 15 - # checks 16 - jinja2, 17 - pytestCheckHook, 18 - xarray, 19 - }: 20 - 21 - buildPythonPackage rec { 22 - pname = "dask-expr"; 23 - version = "1.1.21"; 24 - pyproject = true; 25 - 26 - src = fetchFromGitHub { 27 - owner = "dask"; 28 - repo = "dask-expr"; 29 - tag = "v${version}"; 30 - hash = "sha256-t1vPlTxV5JYArg/a7CzPP13NHbstEoCgHRmd8Y9mDfA="; 31 - }; 32 - 33 - postPatch = '' 34 - substituteInPlace pyproject.toml \ 35 - --replace-fail "versioneer[toml]==0.28" "versioneer[toml]" 36 - ''; 37 - 38 - build-system = [ 39 - setuptools 40 - versioneer 41 - ]; 42 - 43 - dependencies = [ 44 - dask 45 - pandas 46 - pyarrow 47 - ]; 48 - 49 - pythonImportsCheck = [ "dask_expr" ]; 50 - 51 - nativeCheckInputs = [ 52 - jinja2 53 - pytestCheckHook 54 - xarray 55 - ]; 56 - 57 - __darwinAllowLocalNetworking = true; 58 - 59 - meta = { 60 - description = "Rewrite of Dask DataFrame that includes query optimization and generally improved organization"; 61 - homepage = "https://github.com/dask/dask-expr"; 62 - license = lib.licenses.bsd3; 63 - maintainers = with lib.maintainers; [ GaetanLepage ]; 64 - }; 65 - }
+32 -26
pkgs/development/python-modules/dask-glm/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 + fetchFromGitHub, 5 + 6 + # build-system 7 + setuptools-scm, 8 + 9 + # dependencies 4 10 cloudpickle, 5 - dask, 6 11 distributed, 7 - fetchPypi, 8 12 multipledispatch, 9 - pytestCheckHook, 10 - pythonOlder, 11 13 scikit-learn, 12 14 scipy, 13 - setuptools-scm, 14 15 sparse, 16 + dask, 17 + 18 + # tests 19 + pytest-xdist, 20 + pytestCheckHook, 15 21 }: 16 22 17 23 buildPythonPackage rec { 18 24 pname = "dask-glm"; 19 25 version = "0.3.2"; 20 - format = "setuptools"; 26 + pyproject = true; 21 27 22 - disabled = pythonOlder "3.7"; 23 - 24 - src = fetchPypi { 25 - inherit pname version; 26 - hash = "sha256-yUelZoZmmKAdeZeK5zIzy16DitXq1ghRQ1gsXpMLmko="; 28 + src = fetchFromGitHub { 29 + owner = "dask"; 30 + repo = "dask-glm"; 31 + tag = version; 32 + hash = "sha256-q98QMmw1toashimS16of54cgZgIPqkua3xGD1FZ1nTc="; 27 33 }; 28 34 29 - nativeBuildInputs = [ setuptools-scm ]; 35 + # ValueError: The truth value of an empty array is ambiguous. Use `array.size > 0` to check that an array is not empty. 36 + postPatch = '' 37 + substituteInPlace dask_glm/utils.py \ 38 + --replace-fail "if arr:" "if (arr is not None) and (arr.size > 0):" 39 + ''; 30 40 31 - propagatedBuildInputs = [ 41 + build-system = [ setuptools-scm ]; 42 + 43 + dependencies = [ 32 44 cloudpickle 33 45 distributed 34 46 multipledispatch ··· 38 50 ] ++ dask.optional-dependencies.array; 39 51 40 52 nativeCheckInputs = [ 41 - sparse 53 + pytest-xdist 42 54 pytestCheckHook 43 55 ]; 44 56 45 57 pythonImportsCheck = [ "dask_glm" ]; 46 58 47 - disabledTestPaths = [ 48 - # Circular dependency with dask-ml 49 - "dask_glm/tests/test_estimators.py" 50 - # Test tries to imort an obsolete method 51 - "dask_glm/tests/test_utils.py" 52 - ]; 53 - 54 59 disabledTests = [ 55 - # missing fixture with distributed>=2022.8.0 56 - "test_determinism_distributed" 60 + # ValueError: <class 'bool'> can be computed for one-element arrays only. 61 + "test_dot_with_sparse" 57 62 ]; 58 63 59 64 __darwinAllowLocalNetworking = true; 60 65 61 - meta = with lib; { 66 + meta = { 62 67 description = "Generalized Linear Models with Dask"; 63 68 homepage = "https://github.com/dask/dask-glm/"; 64 - license = licenses.bsd3; 65 - maintainers = [ ]; 69 + changelog = "https://github.com/dask/dask-glm/releases/tag/${version}"; 70 + license = lib.licenses.bsd3; 71 + maintainers = with lib.maintainers; [ GaetanLepage ]; 66 72 }; 67 73 }
+5 -3
pkgs/development/python-modules/dask-histogram/default.nix
··· 10 10 # dependencies 11 11 boost-histogram, 12 12 dask, 13 + dask-awkward, 13 14 14 15 # tests 15 16 pytestCheckHook, ··· 17 18 18 19 buildPythonPackage rec { 19 20 pname = "dask-histogram"; 20 - version = "2024.12.1"; 21 + version = "2025.2.0"; 21 22 pyproject = true; 22 23 23 24 src = fetchFromGitHub { 24 25 owner = "dask-contrib"; 25 26 repo = "dask-histogram"; 26 27 tag = version; 27 - hash = "sha256-chznfEsMFuIioIlTz6uNpVAkjMMoMXjS62R4luKxVZQ="; 28 + hash = "sha256-5Ec/qzVc/7LDG6SJym1e76BbxmbVjKKQHckwtTs1+6M="; 28 29 }; 29 30 30 31 build-system = [ ··· 35 36 dependencies = [ 36 37 boost-histogram 37 38 dask 39 + dask-awkward 38 40 ]; 39 41 40 42 nativeCheckInputs = [ pytestCheckHook ]; ··· 44 46 meta = { 45 47 description = "Histograms with task scheduling"; 46 48 homepage = "https://dask-histogram.readthedocs.io/"; 47 - changelog = "https://github.com/dask-contrib/dask-histogram/releases/tag/${src.tag}"; 49 + changelog = "https://github.com/dask-contrib/dask-histogram/releases/tag/${version}"; 48 50 license = with lib.licenses; [ bsd3 ]; 49 51 maintainers = with lib.maintainers; [ veprbl ]; 50 52 };
+24 -3
pkgs/development/python-modules/dask-image/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - pythonOlder, 5 4 fetchFromGitHub, 5 + 6 + # build-system 6 7 setuptools, 7 8 setuptools-scm, 9 + 10 + # dependencies 8 11 dask, 9 12 numpy, 10 13 scipy, 11 14 pandas, 12 15 pims, 16 + 17 + # tests 18 + pyarrow, 13 19 pytestCheckHook, 14 20 scikit-image, 15 21 }: ··· 19 25 version = "2024.5.3"; 20 26 pyproject = true; 21 27 22 - disabled = pythonOlder "3.9"; 23 - 24 28 src = fetchFromGitHub { 25 29 owner = "dask"; 26 30 repo = "dask-image"; ··· 28 32 hash = "sha256-kXCAqJ2Zgo/2Khvo2YcK+n4oGM219GyQ2Hsq9re1Lac="; 29 33 }; 30 34 35 + postPatch = '' 36 + substituteInPlace dask_image/ndinterp/__init__.py \ 37 + --replace-fail "out_bounds.ptp(axis=1)" "np.ptp(out_bounds, axis=1)" 38 + ''; 39 + 31 40 build-system = [ 32 41 setuptools 33 42 setuptools-scm ··· 42 51 ]; 43 52 44 53 nativeCheckInputs = [ 54 + pyarrow 45 55 pytestCheckHook 46 56 scikit-image 47 57 ]; 48 58 49 59 pythonImportsCheck = [ "dask_image" ]; 50 60 61 + disabledTests = [ 62 + # The following tests are from 'tests/test_dask_image/test_ndmeasure/test_find_objects.py' and 63 + # fail because of errrors on numpy slices 64 + # AttributeError: 'str' object has no attribute 'start' 65 + "test_find_objects" 66 + "test_3d_find_objects" 67 + # AssertionError (comparing slices) 68 + "test_find_objects_with_empty_chunks" 69 + ]; 70 + 51 71 meta = { 52 72 description = "Distributed image processing"; 53 73 homepage = "https://github.com/dask/dask-image"; 74 + changelog = "https://github.com/dask/dask-image/releases/tag/v${version}"; 54 75 license = lib.licenses.bsdOriginal; 55 76 maintainers = with lib.maintainers; [ GaetanLepage ]; 56 77 };
+9 -37
pkgs/development/python-modules/dask-ml/default.nix
··· 3 3 stdenv, 4 4 buildPythonPackage, 5 5 fetchFromGitHub, 6 + fetchpatch, 6 7 7 8 # build-system 8 9 hatch-vcs, 9 10 hatchling, 10 - setuptools-scm, 11 11 12 12 # dependencies 13 - dask-expr, 14 13 dask-glm, 15 14 distributed, 16 15 multipledispatch, ··· 29 28 30 29 buildPythonPackage rec { 31 30 pname = "dask-ml"; 32 - version = "2024.4.4"; 31 + version = "2025.1.0"; 33 32 pyproject = true; 34 33 35 34 src = fetchFromGitHub { 36 35 owner = "dask"; 37 36 repo = "dask-ml"; 38 37 tag = "v${version}"; 39 - hash = "sha256-ZiBpCk3b4Tk0Hwb4uapJLEx+Nb/qHFROCnkBTNGDzoU="; 38 + hash = "sha256-DHxx0LFuJmGWYuG/WGHj+a5XHAEekBmlHUUb90rl2IY="; 40 39 }; 41 40 42 41 build-system = [ 43 42 hatch-vcs 44 43 hatchling 45 - setuptools-scm 46 44 ]; 47 45 48 46 dependencies = 49 47 [ 50 - dask-expr 51 48 dask-glm 52 49 distributed 53 50 multipledispatch ··· 73 70 pytestCheckHook 74 71 ]; 75 72 76 - disabledTestPaths = 77 - [ 78 - # AttributeError: 'csr_matrix' object has no attribute 'A' 79 - # Fixed in https://github.com/dask/dask-ml/pull/996 80 - "tests/test_svd.py" 81 - 82 - # Tests fail with dask>=0.11.2 83 - # RuntimeError: Not enough arguments provided 84 - # Reported in https://github.com/dask/dask-ml/issues/1003 85 - "tests/model_selection/test_incremental.py" 86 - ] 87 - ++ lib.optionals stdenv.isDarwin [ 88 - # RuntimeError: Not enough arguments provided: missing keys 89 - "tests/model_selection/test_hyperband.py" 90 - "tests/model_selection/test_incremental.py" 91 - "tests/model_selection/test_incremental_warns.py" 92 - "tests/model_selection/test_successive_halving.py" 93 - ]; 73 + disabledTestPaths = [ 74 + # AttributeError: module 'numpy' has no attribute 'product' 75 + "tests/test_svd.py" 76 + ]; 94 77 95 78 disabledTests = [ 96 - # Flaky: `Arrays are not almost equal to 3 decimals` (although values do actually match) 97 - "test_whitening" 98 - 99 - # Tests fail with dask>=0.11.2 100 - # RuntimeError: Not enough arguments provided 101 - # Reported in https://github.com/dask/dask-ml/issues/1003 102 - "test_basic" 103 - "test_hyperband_patience" 104 - "test_same_random_state_same_params" 105 - "test_search_patience_infeasible_tol" 106 - "test_sha_max_iter_and_metadata" 107 - "test_warns_decay_rate" 108 - "test_warns_decay_rate_wanted" 79 + # AssertionError: Regex pattern did not match. 80 + "test_unknown_category_transform_array" 109 81 ]; 110 82 111 83 __darwinAllowLocalNetworking = true;
+101 -144
pkgs/development/python-modules/dask/default.nix
··· 1 1 { 2 2 lib, 3 - stdenv, 4 3 buildPythonPackage, 5 4 fetchFromGitHub, 6 5 ··· 27 26 jinja2, 28 27 29 28 # tests 30 - arrow-cpp, 31 - dask-expr, 32 29 hypothesis, 33 30 pytest-asyncio, 31 + pytest-cov-stub, 32 + pytest-mock, 34 33 pytest-rerunfailures, 35 34 pytest-xdist, 36 35 pytestCheckHook, 36 + versionCheckHook, 37 37 }: 38 38 39 - let 40 - self = buildPythonPackage rec { 41 - pname = "dask"; 42 - version = "2024.12.1"; 43 - pyproject = true; 39 + buildPythonPackage rec { 40 + pname = "dask"; 41 + version = "2025.1.0"; 42 + pyproject = true; 44 43 45 - src = fetchFromGitHub { 46 - owner = "dask"; 47 - repo = "dask"; 48 - tag = version; 49 - hash = "sha256-QqvdldAHW2UYt1NXfk3Aa+oe97e+OpRbF8d6eKV3OJ4="; 50 - }; 44 + src = fetchFromGitHub { 45 + owner = "dask"; 46 + repo = "dask"; 47 + tag = version; 48 + hash = "sha256-KBqOyf471mNg3L9dYmR7IRSltEtC+VgC+6ptsoKgVmM="; 49 + }; 51 50 52 - build-system = [ setuptools ]; 51 + postPatch = '' 52 + # versioneer hack to set version of GitHub package 53 + echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py 53 54 54 - dependencies = [ 55 - click 56 - cloudpickle 57 - fsspec 58 - packaging 59 - partd 60 - pyyaml 61 - importlib-metadata 62 - toolz 63 - ]; 55 + substituteInPlace setup.py \ 56 + --replace-fail "import versioneer" "" \ 57 + --replace-fail "version=versioneer.get_version()," "version='${version}'," \ 58 + --replace-fail "cmdclass=versioneer.get_cmdclass()," "" 59 + 60 + substituteInPlace pyproject.toml \ 61 + --replace-fail ', "versioneer[toml]==0.29"' "" 62 + ''; 63 + 64 + build-system = [ setuptools ]; 64 65 65 - optional-dependencies = lib.fix (self: { 66 - array = [ numpy ]; 67 - complete = 68 - [ 69 - pyarrow 70 - lz4 71 - ] 72 - ++ self.array 73 - ++ self.dataframe 74 - ++ self.distributed 75 - ++ self.diagnostics; 76 - dataframe = [ 77 - # dask-expr -> circular dependency with dask-expr 78 - numpy 79 - pandas 80 - ]; 81 - distributed = [ distributed ]; 82 - diagnostics = [ 83 - bokeh 84 - jinja2 85 - ]; 86 - }); 66 + dependencies = [ 67 + click 68 + cloudpickle 69 + fsspec 70 + packaging 71 + partd 72 + pyyaml 73 + importlib-metadata 74 + toolz 75 + ]; 87 76 88 - nativeCheckInputs = 77 + optional-dependencies = lib.fix (self: { 78 + array = [ numpy ]; 79 + complete = 89 80 [ 90 - dask-expr 91 - pytestCheckHook 92 - pytest-rerunfailures 93 - pytest-xdist 94 - # from panda[test] 95 - hypothesis 96 - pytest-asyncio 81 + pyarrow 82 + lz4 97 83 ] 98 - ++ self.optional-dependencies.array 99 - ++ self.optional-dependencies.dataframe 100 - ++ lib.optionals (!arrow-cpp.meta.broken) [ 101 - # support is sparse on aarch64 102 - pyarrow 103 - ]; 84 + ++ self.array 85 + ++ self.dataframe 86 + ++ self.distributed 87 + ++ self.diagnostics; 88 + dataframe = [ 89 + pandas 90 + pyarrow 91 + ] ++ self.array; 92 + distributed = [ distributed ]; 93 + diagnostics = [ 94 + bokeh 95 + jinja2 96 + ]; 97 + }); 104 98 105 - dontUseSetuptoolsCheck = true; 106 - 107 - postPatch = '' 108 - # versioneer hack to set version of GitHub package 109 - echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py 99 + nativeCheckInputs = 100 + [ 101 + hypothesis 102 + pyarrow 103 + pytest-asyncio 104 + pytest-cov-stub 105 + pytest-mock 106 + pytest-rerunfailures 107 + pytest-xdist 108 + pytestCheckHook 109 + versionCheckHook 110 + ] 111 + ++ optional-dependencies.array 112 + ++ optional-dependencies.dataframe; 113 + versionCheckProgramArg = [ "--version" ]; 110 114 111 - substituteInPlace setup.py \ 112 - --replace-fail "import versioneer" "" \ 113 - --replace-fail "version=versioneer.get_version()," "version='${version}'," \ 114 - --replace-fail "cmdclass=versioneer.get_cmdclass()," "" 115 - 116 - substituteInPlace pyproject.toml \ 117 - --replace-fail ', "versioneer[toml]==0.29"' "" \ 118 - --replace-fail " --durations=10" "" \ 119 - --replace-fail " --cov-config=pyproject.toml" "" \ 120 - --replace-fail "\"-v" "\" " 121 - ''; 122 - 123 - pytestFlagsArray = [ 124 - # Rerun failed tests up to three times 125 - "--reruns 3" 126 - # Don't run tests that require network access 127 - "-m 'not network'" 128 - ]; 129 - 130 - disabledTests = 131 - lib.optionals stdenv.hostPlatform.isDarwin [ 132 - # Test requires features of python3Packages.psutil that are 133 - # blocked in sandboxed-builds 134 - "test_auto_blocksize_csv" 135 - # AttributeError: 'str' object has no attribute 'decode' 136 - "test_read_dir_nometa" 137 - ] 138 - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ 139 - # concurrent.futures.process.BrokenProcessPool: A process in the process pool terminated abpruptly... 140 - "test_foldby_tree_reduction" 141 - "test_to_bag" 142 - ] 143 - ++ [ 144 - # https://github.com/dask/dask/issues/10347#issuecomment-1589683941 145 - "test_concat_categorical" 146 - # AttributeError: 'ArrowStringArray' object has no attribute 'tobytes'. Did you mean: 'nbytes'? 147 - "test_dot" 148 - "test_dot_nan" 149 - "test_merge_column_with_nulls" 150 - # FileNotFoundError: [Errno 2] No such file or directory: '/build/tmp301jryv_/createme/0.part' 151 - "test_to_csv_nodir" 152 - "test_to_json_results" 153 - # FutureWarning: Those tests should be working fine when pandas will have been upgraded to 2.1.1 154 - "test_apply" 155 - "test_apply_infer_columns" 156 - ]; 115 + pytestFlagsArray = [ 116 + # Rerun failed tests up to three times 117 + "--reruns 3" 118 + # Don't run tests that require network access 119 + "-m 'not network'" 120 + ]; 157 121 158 - __darwinAllowLocalNetworking = true; 122 + disabledTests = [ 123 + # UserWarning: Insufficient elements for `head`. 10 elements requested, only 5 elements available. Try passing larger `npartitions` to `head`. 124 + "test_set_index_head_nlargest_string" 125 + ]; 159 126 160 - pythonImportsCheck = [ 161 - "dask" 162 - "dask.bag" 163 - "dask.bytes" 164 - "dask.diagnostics" 165 - ]; 127 + __darwinAllowLocalNetworking = true; 166 128 167 - doCheck = false; 129 + pythonImportsCheck = [ 130 + "dask" 131 + "dask.bag" 132 + "dask.bytes" 133 + "dask.diagnostics" 168 134 169 - # Enable tests via passthru to avoid cyclic dependency with dask-expr. 170 - passthru.tests = { 171 - check = self.overridePythonAttrs (old: { 172 - doCheck = true; 173 - pythonImportsCheck = [ 174 - # Requires the `dask.optional-dependencies.array` that are only in `nativeCheckInputs` 175 - "dask.array" 176 - # Requires the `dask.optional-dependencies.dataframe` that are only in `nativeCheckInputs` 177 - "dask.dataframe" 178 - "dask.dataframe.io" 179 - "dask.dataframe.tseries" 180 - ] ++ old.pythonImportsCheck; 181 - }); 182 - }; 135 + # Requires the `dask.optional-dependencies.array` that are only in `nativeCheckInputs` 136 + "dask.array" 137 + # Requires the `dask.optional-dependencies.dataframe` that are only in `nativeCheckInputs` 138 + "dask.dataframe" 139 + "dask.dataframe.io" 140 + "dask.dataframe.tseries" 141 + ]; 183 142 184 - meta = { 185 - description = "Minimal task scheduling abstraction"; 186 - mainProgram = "dask"; 187 - homepage = "https://dask.org/"; 188 - changelog = "https://docs.dask.org/en/latest/changelog.html"; 189 - license = lib.licenses.bsd3; 190 - maintainers = with lib.maintainers; [ GaetanLepage ]; 191 - }; 143 + meta = { 144 + description = "Minimal task scheduling abstraction"; 145 + mainProgram = "dask"; 146 + homepage = "https://dask.org/"; 147 + changelog = "https://docs.dask.org/en/latest/changelog.html"; 148 + license = lib.licenses.bsd3; 149 + maintainers = with lib.maintainers; [ GaetanLepage ]; 192 150 }; 193 - in 194 - self 151 + }
+19 -12
pkgs/development/python-modules/mplhep/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 - setuptools, 6 - setuptools-scm, 5 + 6 + # build-system 7 + hatch-vcs, 8 + hatchling, 9 + 10 + # dependencies 7 11 matplotlib, 8 12 mplhep-data, 9 13 numpy, 10 14 packaging, 11 15 uhi, 16 + 17 + # tests 18 + hist, 19 + pytest-mock, 20 + pytest-mpl, 12 21 pytestCheckHook, 13 22 scipy, 14 - pytest-mpl, 15 - pytest-mock, 16 23 uproot, 17 - hist, 18 24 }: 19 25 20 26 buildPythonPackage rec { 21 27 pname = "mplhep"; 22 - version = "0.3.55"; 28 + version = "0.3.56"; 23 29 pyproject = true; 24 30 25 31 src = fetchFromGitHub { 26 32 owner = "scikit-hep"; 27 33 repo = "mplhep"; 28 34 tag = "v${version}"; 29 - hash = "sha256-7YkrrH9Bfn3ctjv+H6TXEDE8yS/wnjO7umuHIXeYTDU="; 35 + hash = "sha256-sMJpJUEtIqmu7kCgZp43t9XLy/6nkDgKcxC4nFb+1po="; 30 36 }; 31 37 32 38 build-system = [ 33 - setuptools 34 - setuptools-scm 39 + hatch-vcs 40 + hatchling 35 41 ]; 36 42 37 43 dependencies = [ ··· 43 49 ]; 44 50 45 51 nativeCheckInputs = [ 52 + hist 53 + pytest-mock 54 + pytest-mpl 46 55 pytestCheckHook 47 56 scipy 48 - pytest-mpl 49 - pytest-mock 50 57 uproot 51 - hist 52 58 ]; 53 59 54 60 disabledTests = [ ··· 62 68 meta = { 63 69 description = "Extended histogram plots on top of matplotlib and HEP compatible styling similar to current collaboration requirements (ROOT)"; 64 70 homepage = "https://github.com/scikit-hep/mplhep"; 71 + changelog = "https://github.com/scikit-hep/mplhep/releases/tag/v${version}"; 65 72 license = with lib.licenses; [ mit ]; 66 73 maintainers = with lib.maintainers; [ veprbl ]; 67 74 };
+14 -13
pkgs/development/python-modules/narwhals/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - # cudf, 5 - dask, 6 - dask-expr, 7 - duckdb, 8 4 fetchFromGitHub, 5 + 6 + # build-system 9 7 hatchling, 10 - hypothesis, 8 + 9 + # optional-dependencies 10 + # cudf, 11 + dask, 11 12 # modin, 12 13 pandas, 13 14 polars, 14 15 pyarrow, 16 + 17 + # tests 18 + duckdb, 19 + hypothesis, 15 20 pytest-env, 16 21 pytestCheckHook, 17 - pythonOlder, 18 22 }: 19 23 20 24 buildPythonPackage rec { 21 25 pname = "narwhals"; 22 - version = "1.22.0"; 26 + version = "1.26.0"; 23 27 pyproject = true; 24 28 25 - disabled = pythonOlder "3.8"; 26 - 27 29 src = fetchFromGitHub { 28 30 owner = "narwhals-dev"; 29 31 repo = "narwhals"; 30 32 tag = "v${version}"; 31 - hash = "sha256-I6nJJiiW1v04YH70OPxXKeO80N52nnCPKRzJLILEWmw="; 33 + hash = "sha256-tGxRJauYD0mCA66Rd2i8jJsuDLVgyk35F7HRMR1ZkQs="; 32 34 }; 33 35 34 36 build-system = [ ··· 39 41 # cudf = [ cudf ]; 40 42 dask = [ 41 43 dask 42 - dask-expr 43 - ]; 44 + ] ++ dask.optional-dependencies.dataframe; 44 45 # modin = [ modin ]; 45 46 pandas = [ pandas ]; 46 47 polars = [ polars ]; ··· 64 65 meta = { 65 66 description = "Lightweight and extensible compatibility layer between dataframe libraries"; 66 67 homepage = "https://github.com/narwhals-dev/narwhals"; 67 - changelog = "https://github.com/narwhals-dev/narwhals/releases/tag/${src.tag}"; 68 + changelog = "https://github.com/narwhals-dev/narwhals/releases/tag/v${version}"; 68 69 license = lib.licenses.mit; 69 70 maintainers = with lib.maintainers; [ fab ]; 70 71 };
+25 -35
pkgs/development/python-modules/streamz/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - pythonOlder, 5 - fetchPypi, 4 + fetchFromGitHub, 5 + 6 + # build-system 6 7 setuptools, 7 - confluent-kafka, 8 - dask, 9 - dask-expr, 10 - distributed, 11 - flaky, 12 - graphviz, 13 - networkx, 14 - pytest-asyncio, 15 - pytestCheckHook, 16 - requests, 8 + 9 + # dependencies 17 10 six, 18 11 toolz, 19 12 tornado, 20 13 zict, 14 + 15 + # tests 16 + dask, 17 + distributed, 18 + flaky, 19 + pandas, 20 + pyarrow, 21 + pytestCheckHook, 21 22 }: 22 23 23 24 buildPythonPackage rec { ··· 25 26 version = "0.6.4"; 26 27 pyproject = true; 27 28 28 - disabled = pythonOlder "3.6"; 29 - 30 - src = fetchPypi { 31 - inherit pname version; 32 - hash = "sha256-VXfWkEwuxInBQVQJV3IQXgGVRkiBmYfUZCBMbjyWNPM="; 29 + src = fetchFromGitHub { 30 + owner = "python-streamz"; 31 + repo = "streamz"; 32 + tag = version; 33 + hash = "sha256-lSb3gl+TSIzz4BZzxH8zXu74HvzSntOAoVQUUJKIEvA="; 33 34 }; 34 35 35 36 build-system = [ setuptools ]; 36 37 37 38 dependencies = [ 38 - networkx 39 39 six 40 40 toolz 41 41 tornado ··· 43 43 ]; 44 44 45 45 nativeCheckInputs = [ 46 - confluent-kafka 47 46 dask 48 - dask-expr 49 47 distributed 50 48 flaky 51 - graphviz 52 - pytest-asyncio 49 + pandas 50 + pyarrow 53 51 pytestCheckHook 54 - requests 55 52 ]; 56 53 57 54 pythonImportsCheck = [ "streamz" ]; ··· 63 60 "test_partition_then_scatter_sync" 64 61 "test_sync" 65 62 "test_sync_2" 66 - # Test fail in the sandbox 67 - "test_tcp_async" 68 - "test_tcp" 69 - "test_partition_timeout" 63 + 70 64 # Tests are flaky 71 - "test_from_iterable" 72 65 "test_buffer" 73 66 ]; 74 67 75 - disabledTestPaths = [ 76 - # Disable kafka tests 77 - "streamz/tests/test_kafka.py" 78 - ]; 68 + __darwinAllowLocalNetworking = true; 79 69 80 - meta = with lib; { 70 + meta = { 81 71 description = "Pipelines to manage continuous streams of data"; 82 72 homepage = "https://github.com/python-streamz/streamz"; 83 - license = licenses.bsd3; 84 - maintainers = [ ]; 73 + license = lib.licenses.bsd3; 74 + maintainers = with lib.maintainers; [ GaetanLepage ]; 85 75 }; 86 76 }
+1
pkgs/top-level/python-aliases.nix
··· 142 142 cx_Freeze = cx-freeze; # added 2023-08-02 143 143 cx_oracle = cx-oracle; # added 2024-01-03 144 144 d2to1 = throw "d2to1 is archived and no longer works with setuptools v68"; # added 2023-07-30 145 + dask-expr = throw "dask-expr was removed because its features are available in dask"; # added 2025-02-07 145 146 dask-xgboost = throw "dask-xgboost was removed because its features are available in xgboost"; # added 2022-05-24 146 147 dash-renderer = throw "dash-renderer has been removed since it is abandoned"; # added 2025-01-01 147 148 dateutil = python-dateutil; # added 2021-07-03
-2
pkgs/top-level/python-packages.nix
··· 2961 2961 2962 2962 dask-awkward = callPackage ../development/python-modules/dask-awkward { }; 2963 2963 2964 - dask-expr = callPackage ../development/python-modules/dask-expr { }; 2965 - 2966 2964 dask-gateway = callPackage ../development/python-modules/dask-gateway { }; 2967 2965 2968 2966 dask-gateway-server = callPackage ../development/python-modules/dask-gateway-server { };