python3Packages.scikitimage: fix build in darwin sandbox

+8 -2
+8 -2
pkgs/development/python-modules/scikit-image/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , fetchFromGitHub 3 4 , buildPythonPackage 4 5 , python ··· 63 64 # Requires network access (actually some data is loaded via `skimage._shared.testing.fetch` in the global scope, which calls `pytest.skip` when a network is unaccessible, leading to a pytest collection error). 64 65 "${installedPackageRoot}/skimage/filters/rank/tests/test_rank.py" 65 66 ]; 66 - pytestFlagsArray = [ "${installedPackageRoot}" "--pyargs" "skimage" ] ++ builtins.map (testid: "--deselect=" + testid) [ 67 + pytestFlagsArray = [ "${installedPackageRoot}" "--pyargs" "skimage" ] ++ builtins.map (testid: "--deselect=" + testid) ([ 67 68 # These tests require network access 68 69 "skimage/data/test_data.py::test_skin" 69 70 "skimage/data/tests/test_data.py::test_skin" 70 71 "skimage/io/tests/test_io.py::test_imread_http_url" 71 72 "skimage/restoration/tests/test_rolling_ball.py::test_ndim" 72 - ]; 73 + ] ++ lib.optionals stdenv.isDarwin [ 74 + # Matplotlib tests are broken inside darwin sandbox 75 + "skimage/feature/tests/test_util.py::test_plot_matches" 76 + "skimage/filters/tests/test_thresholding.py::TestSimpleImage::test_try_all_threshold" 77 + "skimage/io/tests/test_mpl_imshow.py::" 78 + ]); 73 79 74 80 # Check cythonized modules 75 81 pythonImportsCheck = [