From fd802eebeff2b09408f4845308fac3fbca6ba0e3 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 6 Feb 2025 10:32:05 +0100 Subject: [PATCH 1/2] python312Packages.arviz: fix build --- .../development/python-modules/arviz/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/arviz/default.nix b/pkgs/development/python-modules/arviz/default.nix index 5388b5abfc1a..e7c98a11919d 100644 --- a/pkgs/development/python-modules/arviz/default.nix +++ b/pkgs/development/python-modules/arviz/default.nix @@ -18,7 +18,7 @@ xarray, xarray-einstats, - # checks + # tests bokeh, cloudpickle, emcee, @@ -33,6 +33,7 @@ #, pystan (not packaged) pytestCheckHook, torchvision, + writableTmpDirAsHomeHook, zarr, }: @@ -79,14 +80,18 @@ buildPythonPackage rec { # pystan (not packaged) pytestCheckHook torchvision + writableTmpDirAsHomeHook zarr ]; - preCheck = '' - export HOME=$(mktemp -d); - ''; + pytestFlagsArray = [ + "arviz/tests/base_tests/" - pytestFlagsArray = [ "arviz/tests/base_tests/" ]; + # AttributeError: module 'zarr.storage' has no attribute 'DirectoryStore' + # https://github.com/arviz-devs/arviz/issues/2357 + "--deselect=arviz/tests/base_tests/test_data_zarr.py::TestDataZarr::test_io_function" + "--deselect=arviz/tests/base_tests/test_data_zarr.py::TestDataZarr::test_io_method" + ]; disabledTests = [ # Tests require network access @@ -94,6 +99,7 @@ buildPythonPackage rec { "test_plot_separation" "test_plot_trace_legend" "test_cov" + # countourpy is not available at the moment "test_plot_kde" "test_plot_kde_2d" From c991a83ff7e1dfc103a29587d51b29a428cb9f84 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 6 Feb 2025 10:41:49 +0100 Subject: [PATCH 2/2] python312Packages.numba: skip failing test on aarch64-linux --- pkgs/development/python-modules/numba/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/numba/default.nix b/pkgs/development/python-modules/numba/default.nix index 86ac691dae94..fa72fbab6021 100644 --- a/pkgs/development/python-modules/numba/default.nix +++ b/pkgs/development/python-modules/numba/default.nix @@ -120,6 +120,11 @@ buildPythonPackage rec { "${python.sitePackages}/numba/tests/test_usecases.py" ]; + disabledTests = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ + # captured stderr: Fatal Python error: Segmentation fault + "test_sum1d_pyobj" + ]; + disabledTestPaths = lib.optionals (!testsWithoutSandbox) [ # See NOTE near passthru.tests.withoutSandbox "${python.sitePackages}/numba/cuda/tests"