python312Packages.uproot: 5.5.1 -> 5.5.2 (#381715)

This commit is contained in:
Dmitry Kalinkin
2025-02-13 14:50:08 -05:00
committed by GitHub
4 changed files with 84 additions and 68 deletions
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
@@ -36,8 +37,8 @@
# checks
distributed,
pyinstrument,
pytestCheckHook,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage rec {
@@ -91,30 +92,46 @@ buildPythonPackage rec {
nativeCheckInputs = [
distributed
pyinstrument
pytestCheckHook
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "coffea" ];
disabledTests = [
# Requires internet access
# https://github.com/CoffeaTeam/coffea/issues/1094
"test_lumimask"
disabledTests =
[
# Requires internet access
# https://github.com/CoffeaTeam/coffea/issues/1094
"test_lumimask"
# Flaky: FileNotFoundError: [Errno 2] No such file or directory
# https://github.com/scikit-hep/coffea/issues/1246
"test_packed_selection_cutflow_dak" # cutflow.npz
"test_packed_selection_nminusone_dak" # nminusone.npz
# Flaky: FileNotFoundError: [Errno 2] No such file or directory
# https://github.com/scikit-hep/coffea/issues/1246
"test_packed_selection_cutflow_dak" # cutflow.npz
"test_packed_selection_nminusone_dak" # nminusone.npz
# AssertionError: bug in Awkward Array: attempt to convert TypeTracerArray into a concrete array
"test_apply_to_fileset"
"test_lorentz_behavior"
# AssertionError: bug in Awkward Array: attempt to convert TypeTracerArray into a concrete array
"test_apply_to_fileset"
"test_lorentz_behavior"
# ValueError: The array to mask was deleted before it could be masked.
# If you want to construct this mask, you must either keep the array alive or use 'ak.mask' explicitly.
"test_read_nanomc"
];
# ValueError: The array to mask was deleted before it could be masked.
# If you want to construct this mask, you must either keep the array alive or use 'ak.mask' explicitly.
"test_read_nanomc"
]
++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
# Fatal Python error: Segmentation fault
# coffea/nanoevents/transforms.py", line 287 in index_range
"test_KaonParent_to_PionDaughters_Loop"
"test_MCRecoAssociations"
"test_MC_daughters"
"test_MC_parents"
"test_field_is_present"
# Fatal Python error: Segmentation fault
# File "/build/source/tests/test_lumi_tools.py", line 37 in test_lumidata
"test_lumidata"
# coffea/lumi_tools/lumi_tools.py", line 113 in get_lumi
"test_lumilist"
];
__darwinAllowLocalNetworking = true;
@@ -1,8 +1,6 @@
{
lib,
stdenv,
fetchPypi,
fetchurl,
buildPythonPackage,
pytestCheckHook,
pkgs,
@@ -88,5 +86,7 @@ buildPythonPackage rec {
changelog = "https://github.com/scikit-hep/fastjet/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ veprbl ];
# ImportError: fastjetcontribfragile.so.0: cannot open shared object file: No such file or directory
broken = true;
};
}
@@ -1,6 +1,5 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
@@ -11,30 +10,31 @@
# dependencies
awkward,
cramjam,
numpy,
fsspec,
numpy,
packaging,
# checks
# tests
awkward-pandas,
pandas,
pytestCheckHook,
pytest-timeout,
pytestCheckHook,
rangehttpserver,
scikit-hep-testdata,
writableTmpDirAsHomeHook,
xxhash,
}:
buildPythonPackage rec {
pname = "uproot";
version = "5.5.1";
version = "5.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "scikit-hep";
repo = "uproot5";
tag = "v${version}";
hash = "sha256-a5gCsv8iBUUASHCJIpxFbgBXTSm/KJOTt6fvSvP/Lio=";
hash = "sha256-vMTZ3ajCEkKKerPXThSxk0vgGxK2Po9hVf8ofaGCO04=";
};
build-system = [
@@ -45,8 +45,8 @@ buildPythonPackage rec {
dependencies = [
awkward
cramjam
numpy
fsspec
numpy
packaging
xxhash
];
@@ -54,50 +54,41 @@ buildPythonPackage rec {
nativeCheckInputs = [
awkward-pandas
pandas
pytestCheckHook
pytest-timeout
pytestCheckHook
rangehttpserver
scikit-hep-testdata
writableTmpDirAsHomeHook
];
preCheck = ''
export HOME="$(mktemp -d)"
'';
disabledTests = [
# Tests that try to download files
"test_descend_into_path_classname_of"
"test_fallback"
"test_fsspec_cache_http"
"test_fsspec_cache_http_directory"
"test_fsspec_chunks"
"test_fsspec_globbing_http"
"test_http"
"test_http_fallback_workers"
"test_http_multipart"
"test_http_port"
"test_http_size"
"test_http_size_port"
"test_http_workers"
"test_issue176"
"test_issue176_again"
"test_issue_1054_filename_colons"
"test_no_multipart"
"test_open_fsspec_github"
"test_open_fsspec_http"
"test_pickle_roundtrip_http"
disabledTests =
[
# Tests that try to download files
"test_descend_into_path_classname_of"
"test_fallback"
"test_fsspec_cache_http"
"test_fsspec_cache_http_directory"
"test_fsspec_chunks"
"test_fsspec_globbing_http"
"test_http"
"test_http_fallback_workers"
"test_http_multipart"
"test_http_port"
"test_http_size"
"test_http_size_port"
"test_http_workers"
"test_issue176"
"test_issue176_again"
"test_issue_1054_filename_colons"
"test_no_multipart"
"test_open_fsspec_github"
"test_open_fsspec_http"
"test_pickle_roundtrip_http"
# Cyclic dependency with dask-awkward
"test_dask_duplicated_keys"
"test_decompression_executor_for_dask"
"test_decompression_threadpool_executor_for_dask"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Tries to connect to localhost:22
# PermissionError: [Errno 1] Operation not permitted
"test_open_fsspec_ssh"
];
# Cyclic dependency with dask-awkward
"test_dask_duplicated_keys"
"test_decompression_executor_for_dask"
"test_decompression_threadpool_executor_for_dask"
];
disabledTestPaths = [
# Tests that try to download files
@@ -58,10 +58,18 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
# AssertionError: assert 2.1073424255447017e-08 == 0.0
"test_issue_463"
];
disabledTests =
lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
# Fatal Python error: Segmentation fault
# numba/typed/typeddict.py", line 185 in __setitem__
"test_method_transform2D"
"test_method_transform3D"
"test_method_transform4D"
]
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
# AssertionError: assert 2.1073424255447017e-08 == 0.0
"test_issue_463"
];
meta = {
description = "Library for 2D, 3D, and Lorentz vectors, especially arrays of vectors, to solve common physics problems in a NumPy-like way";