Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.1 kB · 119 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling, hatch-vcs,
# dependencies aiohttp, awkward, cachetools, cloudpickle, correctionlib, dask, dask-awkward, dask-histogram, hist, lz4, matplotlib, mplhep, numba, numpy, packaging, pandas, pyarrow, requests, scipy, toml, tqdm, uproot, vector,
# tests distributed, pyinstrument, pytest-xdist, pytestCheckHook,}:
buildPythonPackage rec { pname = "coffea"; version = "2025.7.3"; pyproject = true;
src = fetchFromGitHub { owner = "CoffeaTeam"; repo = "coffea"; tag = "v${version}"; hash = "sha256-lCrmWcVzu8Ls0a+r2D1DMZ/Ysq3H9bPj13XOmAS1M5I="; };
build-system = [ hatchling hatch-vcs ];
pythonRelaxDeps = [ "dask" ];
dependencies = [ aiohttp awkward cachetools cloudpickle correctionlib dask dask-awkward dask-histogram hist lz4 matplotlib mplhep numba numpy packaging pandas pyarrow requests 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 ]; };}