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-10-09 19:29:22 +00:00
|
|
|
, fetchpatch
|
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-08-04 22:07:22 +00:00
|
|
|
version = "2023.8.1";
|
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-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-sSsd35Psf3VEydkNxtd9mSBzV23S7fRM/jhbC9T62kY=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "dask-awkward-pyarrow13-test-fixes.patch";
|
|
|
|
url = "https://github.com/dask-contrib/dask-awkward/commit/abe7f4504b4f926232e4d0dfa5c601d265773d85.patch";
|
|
|
|
hash = "sha256-IYlKTV6YasuKIJutB4cCmHeglGWUwBcvFgx1MZw4hjU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|