diff --git a/pkgs/by-name/aw/awscli2/package.nix b/pkgs/by-name/aw/awscli2/package.nix index 6eace0a32db7..0f2881b8f863 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" ]; diff --git a/pkgs/development/python-modules/pook/default.nix b/pkgs/development/python-modules/pook/default.nix index 489bb808ca85..66d6e2da8db8 100644 --- a/pkgs/development/python-modules/pook/default.nix +++ b/pkgs/development/python-modules/pook/default.nix @@ -56,6 +56,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"; 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"; diff --git a/pkgs/development/python-modules/waitress/default.nix b/pkgs/development/python-modules/waitress/default.nix index a49638abb65c..77e044a67af6 100644 --- a/pkgs/development/python-modules/waitress/default.nix +++ b/pkgs/development/python-modules/waitress/default.nix @@ -33,6 +33,9 @@ buildPythonPackage rec { "test_service_port" ]; + # Tests use sockets + __darwinAllowLocalNetworking = true; + meta = with lib; { homepage = "https://github.com/Pylons/waitress"; description = "Waitress WSGI server";