Something went wrong. Try again.
lol
Something went wrong. Try again.
3.4 kB · 169 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonAtLeast, util-linux,
# build-system setuptools, setuptools-scm,
# dependencies click, cloudpickle, fsspec, importlib-metadata, packaging, partd, pyyaml, toolz,
# optional-dependencies numpy, pyarrow, lz4, pandas, distributed, bokeh, jinja2,
# tests hypothesis, psutil, pytest-asyncio, pytest-cov-stub, pytest-mock, pytest-rerunfailures, pytest-timeout, pytest-xdist, pytestCheckHook, versionCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "dask"; version = "2026.3.0"; pyproject = true;
src = fetchFromGitHub { owner = "dask"; repo = "dask"; tag = finalAttrs.version; hash = "sha256-JfCiABGSCJKKSz2/r8fvpVwdQSZqvoQICe+lDvuNhoM="; };
postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace dask/tests/test_system.py \ --replace-fail \ '"taskset",' \ '"${lib.getExe' util-linux "taskset"}",' '';
build-system = [ setuptools setuptools-scm ];
dependencies = [ click cloudpickle fsspec importlib-metadata packaging partd pyyaml toolz ];
optional-dependencies = lib.fix (self: { array = [ numpy ]; complete = [ pyarrow lz4 ] ++ self.array ++ self.dataframe ++ self.distributed ++ self.diagnostics; dataframe = [ pandas pyarrow ] ++ self.array; distributed = [ distributed ]; diagnostics = [ bokeh jinja2 ]; });
nativeCheckInputs = [ hypothesis psutil pyarrow pytest-asyncio pytest-cov-stub pytest-mock pytest-rerunfailures pytest-timeout pytest-xdist pytestCheckHook versionCheckHook ] ++ finalAttrs.passthru.optional-dependencies.array ++ finalAttrs.passthru.optional-dependencies.dataframe;
pytestFlags = [ # Rerun failed tests up to three times "--reruns=3"
# FutureWarning: The previous implementation of stack is deprecated and will be removed in a # future version of pandas. "-Wignore::FutureWarning" ];
disabledTestMarks = [ # Don't run tests that require network access "network" ];
disabledTests = [ # https://github.com/dask/dask/issues/10931 "test_combine_first_all_nans" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # RuntimeWarning: divide by zero encountered in det "test_array_notimpl_function_dask" ] ++ lib.optionals (pythonAtLeast "3.14") [ # https://github.com/dask/dask/issues/12042 "test_multiple_repartition_partition_size" ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "dask" "dask.bag" "dask.bytes" "dask.diagnostics"
# Requires the `dask.optional-dependencies.array` that are only in `nativeCheckInputs` "dask.array" # Requires the `dask.optional-dependencies.dataframe` that are only in `nativeCheckInputs` "dask.dataframe" "dask.dataframe.io" "dask.dataframe.tseries" ];
meta = { description = "Minimal task scheduling abstraction"; mainProgram = "dask"; homepage = "https://dask.org/"; changelog = "https://docs.dask.org/en/latest/changelog.html"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ GaetanLepage ]; };})