2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
2024-06-24 18:47:55 +00:00
|
|
|
|
|
|
|
# build-system
|
2024-06-05 15:53:02 +00:00
|
|
|
hatchling,
|
|
|
|
hatch-vcs,
|
2024-06-24 18:47:55 +00:00
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
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,
|
2024-06-24 18:47:55 +00:00
|
|
|
|
|
|
|
# checks
|
2024-06-05 15:53:02 +00:00
|
|
|
distributed,
|
|
|
|
pyinstrument,
|
|
|
|
pytestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "coffea";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "2024.6.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CoffeaTeam";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "coffea";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-Z6c8R8B8IrDkXVDx89XVtg3eRgORuHPfUyAPRGwAlrg=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2023-07-15 17:15:38 +00:00
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
|
|
|
aiohttp
|
2023-07-15 17:15:38 +00:00
|
|
|
awkward
|
2024-02-29 20:09:43 +00:00
|
|
|
cachetools
|
|
|
|
cloudpickle
|
|
|
|
correctionlib
|
2023-07-15 17:15:38 +00:00
|
|
|
dask
|
|
|
|
dask-awkward
|
|
|
|
dask-histogram
|
2024-02-29 20:09:43 +00:00
|
|
|
fsspec-xrootd
|
|
|
|
hist
|
|
|
|
lz4
|
2023-07-15 17:15:38 +00:00
|
|
|
matplotlib
|
2024-02-29 20:09:43 +00:00
|
|
|
mplhep
|
2023-07-15 17:15:38 +00:00
|
|
|
numba
|
|
|
|
numpy
|
|
|
|
packaging
|
|
|
|
pandas
|
2024-02-29 20:09:43 +00:00
|
|
|
pyarrow
|
2024-05-15 15:35:15 +00:00
|
|
|
requests
|
2024-02-29 20:09:43 +00:00
|
|
|
scipy
|
|
|
|
toml
|
|
|
|
tqdm
|
|
|
|
uproot
|
|
|
|
] ++ dask.optional-dependencies.array;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
distributed
|
|
|
|
pyinstrument
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "coffea" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Requires internet access
|
|
|
|
# https://github.com/CoffeaTeam/coffea/issues/1094
|
|
|
|
"test_lumimask"
|
|
|
|
];
|
|
|
|
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2023-07-15 17:15:38 +00:00
|
|
|
description = "Basic tools and wrappers for enabling not-too-alien syntax when running columnar Collider HEP analysis";
|
|
|
|
homepage = "https://github.com/CoffeaTeam/coffea";
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/CoffeaTeam/coffea/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = with lib.licenses; [ bsd3 ];
|
|
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|