5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
105 lines
1.7 KiB
Nix
105 lines
1.7 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, hatch-vcs
|
|
, aiohttp
|
|
, awkward
|
|
, cachetools
|
|
, cloudpickle
|
|
, correctionlib
|
|
, dask
|
|
, dask-awkward
|
|
, dask-histogram
|
|
, fsspec-xrootd
|
|
, hist
|
|
, lz4
|
|
, matplotlib
|
|
, mplhep
|
|
, numba
|
|
, numpy
|
|
, packaging
|
|
, pandas
|
|
, pyarrow
|
|
, requests
|
|
, scipy
|
|
, toml
|
|
, tqdm
|
|
, uproot
|
|
, distributed
|
|
, pyinstrument
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coffea";
|
|
version = "2024.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CoffeaTeam";
|
|
repo = "coffea";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-FHE7/VL0mnf0eBPzCsrr8ISr7OmfFvI9xuV0CPa7JdU=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
awkward
|
|
cachetools
|
|
cloudpickle
|
|
correctionlib
|
|
dask
|
|
dask-awkward
|
|
dask-histogram
|
|
fsspec-xrootd
|
|
hist
|
|
lz4
|
|
matplotlib
|
|
mplhep
|
|
numba
|
|
numpy
|
|
packaging
|
|
pandas
|
|
pyarrow
|
|
requests
|
|
scipy
|
|
toml
|
|
tqdm
|
|
uproot
|
|
] ++ dask.optional-dependencies.array;
|
|
|
|
nativeCheckInputs = [
|
|
distributed
|
|
pyinstrument
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"coffea"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Requires internet access
|
|
# https://github.com/CoffeaTeam/coffea/issues/1094
|
|
"test_lumimask"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = with lib; {
|
|
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/v${version}";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|