1{ lib
2, awkward
3, buildPythonPackage
4, dask
5, fetchFromGitHub
6, hatch-vcs
7, hatchling
8, pyarrow
9, pytestCheckHook
10, pythonOlder
11, pythonRelaxDepsHook
12}:
13
14buildPythonPackage rec {
15 pname = "dask-awkward";
16 version = "2023.11.2";
17 pyproject = true;
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "dask-contrib";
23 repo = "dask-awkward";
24 rev = "refs/tags/${version}";
25 hash = "sha256-yx0B31x+BMS4alHro+hAPeVB6YK9B7Tg+3sSCMCYjKs=";
26 };
27
28 SETUPTOOLS_SCM_PRETEND_VERSION = version;
29
30 pythonRelaxDeps = [
31 "awkward"
32 ];
33
34 nativeBuildInputs = [
35 hatch-vcs
36 hatchling
37 pythonRelaxDepsHook
38 ];
39
40 propagatedBuildInputs = [
41 awkward
42 dask
43 ];
44
45 checkInputs = [
46 pytestCheckHook
47 pyarrow
48 ];
49
50 pythonImportsCheck = [
51 "dask_awkward"
52 ];
53
54 disabledTests = [
55 # Tests require network access
56 "test_remote_double"
57 "test_remote_single"
58 "test_from_text"
59 ];
60
61 meta = with lib; {
62 description = "Native Dask collection for awkward arrays, and the library to use it";
63 homepage = "https://github.com/dask-contrib/dask-awkward";
64 changelog = "https://github.com/dask-contrib/dask-awkward/releases/tag/${version}";
65 license = licenses.bsd3;
66 maintainers = with maintainers; [ veprbl ];
67 };
68}