diff options
Diffstat (limited to 'pkgs/development/python-modules/coffea/default.nix')
-rw-r--r-- | pkgs/development/python-modules/coffea/default.nix | 94 |
1 files changed, 50 insertions, 44 deletions
diff --git a/pkgs/development/python-modules/coffea/default.nix b/pkgs/development/python-modules/coffea/default.nix index 86090e3b25562..e531471812840 100644 --- a/pkgs/development/python-modules/coffea/default.nix +++ b/pkgs/development/python-modules/coffea/default.nix @@ -1,38 +1,41 @@ -{ 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 +{ + 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.4.1"; + version = "2024.6.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -41,20 +44,16 @@ buildPythonPackage rec { owner = "CoffeaTeam"; repo = "coffea"; rev = "refs/tags/v${version}"; - hash = "sha256-Iu1GHnLUqdhYO7hoHaf+O/S6KO0P+dvl0wgfRA5vtGI="; + hash = "sha256-MnAGtoev20Cn1WUmX8imUNQCJftU4jw+hInYI7dhb4M="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numba>=0.58.1" "numba" - ''; - - nativeBuildInputs = [ + build-system = [ hatchling hatch-vcs ]; - propagatedBuildInputs = [ + dependencies = [ + aiohttp awkward cachetools cloudpickle @@ -72,6 +71,7 @@ buildPythonPackage rec { packaging pandas pyarrow + requests scipy toml tqdm @@ -84,15 +84,21 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "coffea" + pythonImportsCheck = [ "coffea" ]; + + disabledTests = [ + # Requires internet access + # https://github.com/CoffeaTeam/coffea/issues/1094 + "test_lumimask" ]; - meta = with lib; { + __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/v${version}"; - license = with licenses; [ bsd3 ]; - maintainers = with maintainers; [ veprbl ]; + license = with lib.licenses; [ bsd3 ]; + maintainers = with lib.maintainers; [ veprbl ]; }; } |