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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2023.6.3";
|
2023-03-08 16:32:21 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask-contrib";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-2Ejt1fyh8Z81WI+oIFWZxr4M1vfgs6tB4jCCMxBz2Rc=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
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-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 ];
|
|
|
|
};
|
|
|
|
}
|