2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
|
|
|
, awkward
|
2023-05-24 13:37:59 +00:00
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, cachetools
|
2023-03-08 16:32:21 +00:00
|
|
|
, dask
|
2024-02-29 20:09:43 +00:00
|
|
|
, dask-histogram
|
|
|
|
, distributed
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchFromGitHub
|
2023-03-08 16:32:21 +00:00
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
2024-02-29 20:09:43 +00:00
|
|
|
, hist
|
|
|
|
, pandas
|
2023-03-08 16:32:21 +00:00
|
|
|
, pyarrow
|
|
|
|
, pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pythonRelaxDepsHook
|
2024-02-29 20:09:43 +00:00
|
|
|
, typing-extensions
|
|
|
|
, uproot
|
2023-03-08 16:32:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-awkward";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.3.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask-contrib";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "dask-awkward";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Lkbp/XrDHOekMpT71pbxtuozgzU9iiGF2GJZ+tuV/yM=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"awkward"
|
|
|
|
];
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonRelaxDepsHook
|
2023-03-08 16:32:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
awkward
|
2024-04-21 15:54:59 +00:00
|
|
|
cachetools
|
2023-03-08 16:32:21 +00:00
|
|
|
dask
|
2024-02-29 20:09:43 +00:00
|
|
|
typing-extensions
|
2023-03-08 16:32:21 +00:00
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
io = [
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
checkInputs = [
|
2024-02-29 20:09:43 +00:00
|
|
|
dask-histogram
|
|
|
|
distributed
|
|
|
|
hist
|
|
|
|
pandas
|
2023-03-08 16:32:21 +00:00
|
|
|
pytestCheckHook
|
2024-02-29 20:09:43 +00:00
|
|
|
uproot
|
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dask_awkward"
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_remote_double"
|
|
|
|
"test_remote_single"
|
2023-11-16 04:20:00 +00:00
|
|
|
"test_from_text"
|
2024-02-29 20:09:43 +00:00
|
|
|
# ValueError: not a ROOT file: first four bytes...
|
|
|
|
"test_basic_root_works"
|
2023-03-08 16:32:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Native Dask collection for awkward arrays, and the library to use it";
|
|
|
|
homepage = "https://github.com/dask-contrib/dask-awkward";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/dask-contrib/dask-awkward/releases/tag/${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|