From 485395eaba3fbcc3b465d2bd37cdbc23830d0755 Mon Sep 17 00:00:00 2001 From: Zexin Yuan Date: Fri, 20 Jun 2025 12:04:26 +0800 Subject: [PATCH 1/2] 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 ec2118d4e1497..5d60e2779c498 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" ]; From 51a0ea5fb7c3c8eb81e08740870426049cfcf382 Mon Sep 17 00:00:00 2001 From: Zexin Yuan Date: Fri, 20 Jun 2025 12:04:44 +0800 Subject: [PATCH 2/2] python3Packages.plotly: 6.1.0 -> 6.1.2 --- pkgs/development/python-modules/plotly/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/plotly/default.nix b/pkgs/development/python-modules/plotly/default.nix index 5d60e2779c498..a8726a155b689 100644 --- a/pkgs/development/python-modules/plotly/default.nix +++ b/pkgs/development/python-modules/plotly/default.nix @@ -38,14 +38,14 @@ buildPythonPackage rec { pname = "plotly"; - version = "6.1.0"; + version = "6.1.2"; pyproject = true; src = fetchFromGitHub { owner = "plotly"; repo = "plotly.py"; tag = "v${version}"; - hash = "sha256-B5wjZTnL/T+zRbPd3tVSekDbYnKBvIdIpXhc3sUvT3E="; + hash = "sha256-+vIq//pDLaaTmRGW+oytho3TfMmLCtuIoHeFenLVcek="; }; postPatch = ''