1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatch-vcs,
hatchling,
# dependencies
awkward,
cachetools,
dask,
typing-extensions,
# optional-dependencies
pyarrow,
# tests
distributed,
hist,
pandas,
pytestCheckHook,
uproot,
}:
buildPythonPackage rec {
pname = "dask-awkward";
version = "2025.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dask-contrib";
repo = "dask-awkward";
tag = version;
hash = "sha256-7z9SkkE4WqULW0m7lk+oohq1uwSO7XLcrnh6U7wqTgo=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
awkward
cachetools
dask
typing-extensions
];
optional-dependencies = {
io = [ pyarrow ];
};
nativeCheckInputs = [
# dask-histogram (circular dependency)
distributed
hist
pandas
pytestCheckHook
uproot
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "dask_awkward" ];
disabledTests = [
# Tests require network access
"test_remote_double"
"test_remote_single"
"test_from_text"
# ValueError: not a ROOT file: first four bytes...
"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;
meta = {
description = "Native Dask collection for awkward arrays, and the library to use it";
homepage = "https://github.com/dask-contrib/dask-awkward";
changelog = "https://github.com/dask-contrib/dask-awkward/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ veprbl ];
# dask-awkward is incompatible with recent dask versions.
# See https://github.com/dask-contrib/dask-awkward/pull/582 for context.
broken = lib.versionAtLeast dask.version "2025.4.0";
};
}
|