5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
76 lines
1.5 KiB
Nix
76 lines
1.5 KiB
Nix
{ lib
|
|
, awkward
|
|
, buildPythonPackage
|
|
, dask
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, hatch-vcs
|
|
, hatchling
|
|
, pyarrow
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dask-awkward";
|
|
version = "2023.8.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dask-contrib";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-sSsd35Psf3VEydkNxtd9mSBzV23S7fRM/jhbC9T62kY=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "dask-awkward-pyarrow13-test-fixes.patch";
|
|
url = "https://github.com/dask-contrib/dask-awkward/commit/abe7f4504b4f926232e4d0dfa5c601d265773d85.patch";
|
|
hash = "sha256-IYlKTV6YasuKIJutB4cCmHeglGWUwBcvFgx1MZw4hjU=";
|
|
})
|
|
];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
pythonRelaxDeps = [
|
|
"awkward"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
hatch-vcs
|
|
hatchling
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
awkward
|
|
dask
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pyarrow
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dask_awkward"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests require network access
|
|
"test_remote_double"
|
|
"test_remote_single"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Native Dask collection for awkward arrays, and the library to use it";
|
|
homepage = "https://github.com/dask-contrib/dask-awkward";
|
|
changelog = "https://github.com/dask-contrib/dask-awkward/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|