diff --git a/pkgs/development/python-modules/coffea/default.nix b/pkgs/development/python-modules/coffea/default.nix index 0710ca0f5dba..85c37de53b18 100644 --- a/pkgs/development/python-modules/coffea/default.nix +++ b/pkgs/development/python-modules/coffea/default.nix @@ -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; diff --git a/pkgs/development/python-modules/fastjet/default.nix b/pkgs/development/python-modules/fastjet/default.nix index d3e62027ae77..6b57b4a8f031 100644 --- a/pkgs/development/python-modules/fastjet/default.nix +++ b/pkgs/development/python-modules/fastjet/default.nix @@ -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; }; } diff --git a/pkgs/development/python-modules/uproot/default.nix b/pkgs/development/python-modules/uproot/default.nix index fb49f9b6e9cc..9c34d6798579 100644 --- a/pkgs/development/python-modules/uproot/default.nix +++ b/pkgs/development/python-modules/uproot/default.nix @@ -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 diff --git a/pkgs/development/python-modules/vector/default.nix b/pkgs/development/python-modules/vector/default.nix index 41b3156e3186..715a13dbdf06 100644 --- a/pkgs/development/python-modules/vector/default.nix +++ b/pkgs/development/python-modules/vector/default.nix @@ -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";