depot/third_party/nixpkgs/pkgs/development/python-modules/coffea/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

98 lines
1.6 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, hatchling
, hatch-vcs
, awkward
, cachetools
, cloudpickle
, correctionlib
, dask
, dask-awkward
, dask-histogram
, fsspec-xrootd
, hist
, lz4
, matplotlib
, mplhep
, numba
, numpy
, packaging
, pandas
, pyarrow
, scipy
, toml
, tqdm
, uproot
, distributed
, pyinstrument
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "coffea";
version = "2024.2.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "CoffeaTeam";
repo = "coffea";
rev = "refs/tags/v${version}";
hash = "sha256-GdoVb9YtlUlrSx7TWWrdHOqOJJ4M+kJspOllv6HgFXk=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "numba>=0.58.1" "numba"
'';
nativeBuildInputs = [
hatchling
hatch-vcs
];
propagatedBuildInputs = [
awkward
cachetools
cloudpickle
correctionlib
dask
dask-awkward
dask-histogram
fsspec-xrootd
hist
lz4
matplotlib
mplhep
numba
numpy
packaging
pandas
pyarrow
scipy
toml
tqdm
uproot
] ++ dask.optional-dependencies.array;
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";
changelog = "https://github.com/CoffeaTeam/coffea/releases/tag/v${version}";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ veprbl ];
};
}