94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ lib
|
|
, awkward
|
|
, buildPythonPackage
|
|
, dask
|
|
, fetchFromGitHub
|
|
, hatch-vcs
|
|
, hatchling
|
|
, pyarrow
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dask-awkward";
|
|
version = "2023.4.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dask-contrib";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-c3NnARost/406cALQDKmeUsl2kFSQHAswAEwgreFXPc=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|