2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
|
|
|
, awkward
|
2023-05-24 13:37:59 +00:00
|
|
|
, buildPythonPackage
|
2023-03-08 16:32:21 +00:00
|
|
|
, dask
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchFromGitHub
|
2023-03-08 16:32:21 +00:00
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
|
|
|
, pyarrow
|
|
|
|
, pytestCheckHook
|
2023-05-24 13:37:59 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pythonRelaxDepsHook
|
2023-03-08 16:32:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-awkward";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2024.1.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-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-LxkiEQDHuVCRUoYgRwvMgBff22mzOvPmDoqczRweWB8=";
|
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
|
|
|
|
dask
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
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 ];
|
|
|
|
};
|
|
|
|
}
|