mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 17:19:58 +00:00
Diff: https://github.com/CoffeaTeam/coffea/compare/v2025.11.0...v2026.9.0 Changelog: https://github.com/CoffeaTeam/coffea/releases/tag/v2026.9.0
122 lines
2.0 KiB
Nix
122 lines
2.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
hatch-vcs,
|
|
|
|
# dependencies
|
|
aiohttp,
|
|
awkward,
|
|
cachetools,
|
|
cloudpickle,
|
|
correctionlib,
|
|
fsspec,
|
|
hist,
|
|
ipywidgets,
|
|
loky,
|
|
lz4,
|
|
matplotlib,
|
|
mplhep,
|
|
numba,
|
|
numpy,
|
|
packaging,
|
|
pandas,
|
|
pyarrow,
|
|
pydantic,
|
|
pyyaml,
|
|
requests,
|
|
rich,
|
|
scipy,
|
|
toml,
|
|
tqdm,
|
|
uproot,
|
|
vector,
|
|
|
|
# tests
|
|
distributed,
|
|
pyinstrument,
|
|
pytest-xdist,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "coffea";
|
|
version = "2026.9.0";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CoffeaTeam";
|
|
repo = "coffea";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-zVcTAlL4Wl6oUm2VOmX0zBgsHbEyI93RNQwf4NBhE9s=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
awkward
|
|
cachetools
|
|
cloudpickle
|
|
correctionlib
|
|
fsspec
|
|
hist
|
|
ipywidgets
|
|
loky
|
|
lz4
|
|
matplotlib
|
|
mplhep
|
|
numba
|
|
numpy
|
|
packaging
|
|
pandas
|
|
pyarrow
|
|
pydantic
|
|
pyyaml
|
|
requests
|
|
rich
|
|
scipy
|
|
toml
|
|
tqdm
|
|
uproot
|
|
vector
|
|
];
|
|
|
|
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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
|
};
|
|
})
|