Files
nixpkgs/pkgs/development/python-modules/dask-awkward/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

93 lines
1.8 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatch-vcs,
hatchling,
# dependencies
awkward,
cachetools,
dask,
typing-extensions,
# optional-dependencies
pyarrow,
# tests
distributed,
hist,
pandas,
pytestCheckHook,
uproot,
}:
buildPythonPackage rec {
pname = "dask-awkward";
version = "2025.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dask-contrib";
repo = "dask-awkward";
tag = version;
hash = "sha256-TLMT7YxedBUfz05F8wTsS5LQ9LyBbcUhQENM8C7Xric=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
awkward
cachetools
dask
typing-extensions
];
optional-dependencies = {
io = [ pyarrow ];
};
nativeCheckInputs = [
# dask-histogram (circular dependency)
distributed
hist
pandas
pytestCheckHook
uproot
]
++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "dask_awkward" ];
disabledTests = [
# Tests require network access
"test_remote_double"
"test_remote_single"
"test_from_text"
# ValueError: not a ROOT file: first four bytes...
"test_basic_root_works"
# Flaky. https://github.com/dask-contrib/dask-awkward/issues/506.
"test_distance_behavior"
# RuntimeError: Attempting to use an asynchronous Client in a synchronous context of `dask.compute`
# https://github.com/dask-contrib/dask-awkward/issues/573
"test_persist"
"test_ravel_fail"
];
__darwinAllowLocalNetworking = true;
meta = {
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/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ veprbl ];
};
}