From a7bb9745cb0f543331c6b9b13c299e93510ea651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Sat, 18 Jan 2025 22:01:37 +0100 Subject: [PATCH 1/4] awscli2: make it build with darwin sandbox --- pkgs/by-name/aw/awscli2/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/aw/awscli2/package.nix b/pkgs/by-name/aw/awscli2/package.nix index 24064b1668e1..a835aa5684e6 100644 --- a/pkgs/by-name/aw/awscli2/package.nix +++ b/pkgs/by-name/aw/awscli2/package.nix @@ -146,6 +146,9 @@ py.pkgs.buildPythonApplication rec { rm $out/nix-support/propagated-build-inputs ''; + # tests/unit/customizations/sso/test_utils.py uses sockets + __darwinAllowLocalNetworking = true; + pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; From d0d2f479c2f5aad8fd0b25b5c8c40147d9f83f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Sat, 18 Jan 2025 22:02:28 +0100 Subject: [PATCH 2/4] pythonPackages.pook: make it build with darwin sandbox --- pkgs/development/python-modules/pook/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/pook/default.nix b/pkgs/development/python-modules/pook/default.nix index 9b704e6b2e77..f168ad2bba50 100644 --- a/pkgs/development/python-modules/pook/default.nix +++ b/pkgs/development/python-modules/pook/default.nix @@ -53,6 +53,9 @@ buildPythonPackage rec { "tests/unit/interceptors/" ]; + # Tests use sockets + __darwinAllowLocalNetworking = true; + meta = with lib; { description = "HTTP traffic mocking and testing"; homepage = "https://github.com/h2non/pook"; From 83efee239ff434bd7b8adcba2397902f20f5e156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Sat, 18 Jan 2025 22:02:50 +0100 Subject: [PATCH 3/4] pythonPackages.pytest-services: make it build with darwin sandbox --- pkgs/development/python-modules/pytest-services/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/pytest-services/default.nix b/pkgs/development/python-modules/pytest-services/default.nix index a8a0b69f363b..537e06b5e04b 100644 --- a/pkgs/development/python-modules/pytest-services/default.nix +++ b/pkgs/development/python-modules/pytest-services/default.nix @@ -66,6 +66,9 @@ buildPythonPackage rec { "test_xvfb" ]; + # Tests use sockets + __darwinAllowLocalNetworking = true; + meta = with lib; { description = "Services plugin for pytest testing framework"; homepage = "https://github.com/pytest-dev/pytest-services"; From 5b4e52e94ce748de047e934b67cb8e46e1de27d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Sat, 18 Jan 2025 22:03:54 +0100 Subject: [PATCH 4/4] pythonPackages.waitress: make it build with darwin sandbox --- pkgs/development/python-modules/waitress/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/waitress/default.nix b/pkgs/development/python-modules/waitress/default.nix index 79e9b73780bb..4a3fb719bb53 100644 --- a/pkgs/development/python-modules/waitress/default.nix +++ b/pkgs/development/python-modules/waitress/default.nix @@ -31,6 +31,9 @@ buildPythonPackage rec { "test_service_port" ]; + # Tests use sockets + __darwinAllowLocalNetworking = true; + meta = with lib; { homepage = "https://github.com/Pylons/waitress"; description = "Waitress WSGI server";