From 6c3a27c2f571c819a17dfe2419d5e98c6094464c Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sun, 17 Aug 2025 08:30:01 -0700 Subject: [PATCH] python3Packages.reflex: disable tests that fail in Darwin sandbox --- pkgs/development/python-modules/reflex/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/reflex/default.nix b/pkgs/development/python-modules/reflex/default.nix index 4a826e65aa47..70e5c6bc02a2 100644 --- a/pkgs/development/python-modules/reflex/default.nix +++ b/pkgs/development/python-modules/reflex/default.nix @@ -31,6 +31,7 @@ rich, sqlmodel, starlette-admin, + stdenv, typer, typing-extensions, unzip, @@ -124,8 +125,14 @@ buildPythonPackage rec { # tries to run bun or npm "test_output_system_info" # Comparison with magic string - # TODO Recheck on next update as it appears to be fixed in 8.0.x "test_background_task_no_block" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # PermissionError: [Errno 1] Operation not permitted (fails in sandbox) + "test_is_process_on_port_free_port" + "test_is_process_on_port_occupied_port" + "test_is_process_on_port_both_protocols" + "test_is_process_on_port_concurrent_access" ]; disabledTestPaths = [