From 485395eaba3fbcc3b465d2bd37cdbc23830d0755 Mon Sep 17 00:00:00 2001 From: Zexin Yuan Date: Fri, 20 Jun 2025 12:04:26 +0800 Subject: [PATCH] python3Packages.plotly: unbreak on darwin --- .../python-modules/plotly/default.nix | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/plotly/default.nix b/pkgs/development/python-modules/plotly/default.nix index ec2118d4e149..5d60e2779c49 100644 --- a/pkgs/development/python-modules/plotly/default.nix +++ b/pkgs/development/python-modules/plotly/default.nix @@ -103,11 +103,28 @@ buildPythonPackage rec { "test_acceptance_named" ]; + __darwinAllowLocalNetworking = true; + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ - # requires local networking - "plotly/tests/test_io/test_renderers.py" # fails to launch kaleido subprocess - "plotly/tests/test_optional/test_kaleido" + "tests/test_optional/test_kaleido" + # numpy2 related error, RecursionError + # See: https://github.com/plotly/plotly.py/issues/4852 + "tests/test_plotly_utils/validators/test_angle_validator.py" + "tests/test_plotly_utils/validators/test_any_validator.py" + "tests/test_plotly_utils/validators/test_color_validator.py" + "tests/test_plotly_utils/validators/test_colorlist_validator.py" + "tests/test_plotly_utils/validators/test_colorscale_validator.py" + "tests/test_plotly_utils/validators/test_dataarray_validator.py" + "tests/test_plotly_utils/validators/test_enumerated_validator.py" + "tests/test_plotly_utils/validators/test_fig_deepcopy.py" + "tests/test_plotly_utils/validators/test_flaglist_validator.py" + "tests/test_plotly_utils/validators/test_infoarray_validator.py" + "tests/test_plotly_utils/validators/test_integer_validator.py" + "tests/test_plotly_utils/validators/test_number_validator.py" + "tests/test_plotly_utils/validators/test_pandas_series_input.py" + "tests/test_plotly_utils/validators/test_string_validator.py" + "tests/test_plotly_utils/validators/test_xarray_input.py" ]; pythonImportsCheck = [ "plotly" ];