2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
awkward,
|
|
|
|
buildPythonPackage,
|
|
|
|
cachetools,
|
|
|
|
dask,
|
|
|
|
dask-histogram,
|
|
|
|
distributed,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
hist,
|
|
|
|
pandas,
|
|
|
|
pyarrow,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
typing-extensions,
|
|
|
|
uproot,
|
2023-03-08 16:32:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-awkward";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2024.6.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-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-m/KvPo4IGn19sA5RcA/+OhLMCDBU+9BbMQtK3gHOoEc=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "awkward" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [
|
2023-03-08 16:32:21 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonRelaxDepsHook
|
2023-03-08 16:32:21 +00:00
|
|
|
];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
dependencies = [
|
2023-03-08 16:32:21 +00:00
|
|
|
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 = {
|
2024-06-05 15:53:02 +00:00
|
|
|
io = [ pyarrow ];
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dask_awkward" ];
|
2023-03-08 16:32:21 +00:00
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2023-03-08 16:32:21 +00:00
|
|
|
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}";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
}
|