2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hatchling
|
|
|
|
, hatch-vcs
|
|
|
|
, awkward
|
|
|
|
, uproot
|
|
|
|
, dask
|
|
|
|
, dask-awkward
|
|
|
|
, dask-histogram
|
|
|
|
, correctionlib
|
|
|
|
, pyarrow
|
|
|
|
, fsspec
|
|
|
|
, matplotlib
|
|
|
|
, numba
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, tqdm
|
|
|
|
, lz4
|
|
|
|
, cloudpickle
|
|
|
|
, toml
|
|
|
|
, mplhep
|
|
|
|
, packaging
|
|
|
|
, pandas
|
|
|
|
, hist
|
|
|
|
, cachetools
|
|
|
|
, distributed
|
|
|
|
, pyinstrument
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "coffea";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2024.1.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
pyproject = true;
|
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-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-jw8ACKXJZhj4fE7oppTxLUR4mhi+gh2ZD7lnUT3pcwc=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2024-01-02 11:29:13 +00:00
|
|
|
--replace "numba>=0.58.1" "numba"
|
2023-07-15 17:15:38 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
awkward
|
|
|
|
uproot
|
|
|
|
dask
|
|
|
|
dask.optional-dependencies.array
|
|
|
|
dask-awkward
|
|
|
|
dask-histogram
|
|
|
|
correctionlib
|
|
|
|
pyarrow
|
|
|
|
fsspec
|
|
|
|
matplotlib
|
|
|
|
numba
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
tqdm
|
|
|
|
lz4
|
|
|
|
cloudpickle
|
|
|
|
toml
|
|
|
|
mplhep
|
|
|
|
packaging
|
|
|
|
pandas
|
|
|
|
hist
|
|
|
|
cachetools
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
distributed
|
|
|
|
pyinstrument
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"coffea"
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|