nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

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 ··· 64 63 # 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). 65 64 "${installedPackageRoot}/skimage/filters/rank/tests/test_rank.py" 66 65 ]; 67 - pytestFlagsArray = [ "${installedPackageRoot}" "--pyargs" "skimage" ] ++ builtins.map (testid: "--deselect=" + testid) [ 66 + pytestFlagsArray = [ "${installedPackageRoot}" "--pyargs" "skimage" ] ++ builtins.map (testid: "--deselect=" + testid) ([ 68 67 # These tests require network access 69 68 "skimage/data/test_data.py::test_skin" 70 69 "skimage/data/tests/test_data.py::test_skin" 71 70 "skimage/io/tests/test_io.py::test_imread_http_url" 72 71 "skimage/restoration/tests/test_rolling_ball.py::test_ndim" 73 - ]; 72 + ] ++ lib.optionals stdenv.isDarwin [ 73 + # Matplotlib tests are broken inside darwin sandbox 74 + "skimage/feature/tests/test_util.py::test_plot_matches" 75 + "skimage/filters/tests/test_thresholding.py::TestSimpleImage::test_try_all_threshold" 76 + "skimage/io/tests/test_mpl_imshow.py::" 77 + ]); 74 78 75 79 # Check cythonized modules 76 80 pythonImportsCheck = [