Files
nixpkgs/pkgs/development/python-modules/coffea/default.nix
T
Martin Weinelt ad16eafed9 python3Packages.coffea: 2025.11.0 -> 2025.12.0
https://github.com/CoffeaTeam/coffea/releases/tag/v2025.12.0

This commit was automatically generated using update-python-libraries.
2026-02-01 16:42:31 +01:00

126 lines
2.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
hatch-vcs,
# dependencies
aiohttp,
awkward,
cachetools,
cloudpickle,
correctionlib,
dask,
dask-awkward,
dask-histogram,
fsspec,
hist,
ipywidgets,
lz4,
matplotlib,
mplhep,
numba,
numpy,
packaging,
pandas,
pyarrow,
requests,
rich,
scipy,
toml,
tqdm,
uproot,
vector,
# tests
distributed,
pyinstrument,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "coffea";
version = "2025.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CoffeaTeam";
repo = "coffea";
tag = "v${version}";
hash = "sha256-+Qfb5NHJTlSBUqyv+n3zebEwAZPB9+UMV5KiQhOxJSY=";
};
build-system = [
hatchling
hatch-vcs
];
pythonRelaxDeps = [
"dask"
];
dependencies = [
aiohttp
awkward
cachetools
cloudpickle
correctionlib
dask
dask-awkward
dask-histogram
fsspec
hist
ipywidgets
lz4
matplotlib
mplhep
numba
numpy
packaging
pandas
pyarrow
requests
rich
scipy
toml
tqdm
uproot
vector
]
++ dask.optional-dependencies.array;
nativeCheckInputs = [
distributed
pyinstrument
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "coffea" ];
disabledTests = [
# Requires internet access
# https://github.com/CoffeaTeam/coffea/issues/1094
"test_lumimask"
# Flaky: FileNotFoundError: [Errno 2] No such file or directory
# https://github.com/scikit-hep/coffea/issues/1246
"test_packed_selection_cutflow_dak" # cutflow.npz
"test_packed_selection_nminusone_dak" # nminusone.npz
];
__darwinAllowLocalNetworking = true;
meta = {
description = "Basic tools and wrappers for enabling not-too-alien syntax when running columnar Collider HEP analysis";
homepage = "https://github.com/CoffeaTeam/coffea";
changelog = "https://github.com/CoffeaTeam/coffea/releases/tag/${src.tag}";
license = with lib.licenses; [ bsd3 ];
maintainers = with lib.maintainers; [ veprbl ];
};
}