From 70c1259f96f89eeb8b265171068687acb44c08ae Mon Sep 17 00:00:00 2001 From: Morgan Helton Date: Mon, 21 Apr 2025 15:22:20 -0500 Subject: [PATCH] python3Packages.mocket: disable test_httprettish_httpx_session on darwin --- .../python-modules/mocket/default.nix | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/mocket/default.nix b/pkgs/development/python-modules/mocket/default.nix index ac41c1598853..f4f048060795 100644 --- a/pkgs/development/python-modules/mocket/default.nix +++ b/pkgs/development/python-modules/mocket/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + stdenv, fetchPypi, # build-system @@ -78,15 +79,20 @@ buildPythonPackage rec { _darwinAllowLocalNetworking = true; - disabledTests = [ - # tests that require network access (like DNS lookups) - "test_truesendall_with_dump_from_recording" - "test_aiohttp" - "test_asyncio_record_replay" - "test_gethostbyname" - # httpx read failure - "test_no_dangling_fds" - ]; + disabledTests = + [ + # tests that require network access (like DNS lookups) + "test_truesendall_with_dump_from_recording" + "test_aiohttp" + "test_asyncio_record_replay" + "test_gethostbyname" + # httpx read failure + "test_no_dangling_fds" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # fails on darwin due to upstream bug: https://github.com/mindflayer/python-mocket/issues/287 + "test_httprettish_httpx_session" + ]; pythonImportsCheck = [ "mocket" ];