From 9ea402c50790155e2d659fbc02d1e78f66e50e2d Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 29 Apr 2025 13:12:20 +0300 Subject: [PATCH] python312Packages.ipydatawidgets: fix build This likely regressed after bumping to numpy 2.0. Disable the two failing tests for now, issues have been opened upstream. --- .../python-modules/ipydatawidgets/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/ipydatawidgets/default.nix b/pkgs/development/python-modules/ipydatawidgets/default.nix index cacce82794b8..bf3ff8800aab 100644 --- a/pkgs/development/python-modules/ipydatawidgets/default.nix +++ b/pkgs/development/python-modules/ipydatawidgets/default.nix @@ -40,6 +40,17 @@ buildPythonPackage rec { nbval ]; + # Tests bind ports + __darwinAllowLocalNetworking = true; + + pytestFlagsArray = [ + # https://github.com/vidartf/ipydatawidgets/issues/62 + "--deselect=ipydatawidgets/tests/test_ndarray_trait.py::test_dtype_coerce" + + # https://github.com/vidartf/ipydatawidgets/issues/63 + "--deselect=examples/test.ipynb::Cell\\\ 3" + ]; + meta = { description = "Widgets to help facilitate reuse of large datasets across different widgets"; homepage = "https://github.com/vidartf/ipydatawidgets";