···33 "--numprocesses=$NIX_BUILD_CORES"
44 "--forked"
55 )
66+77+ # Using --forked on darwin leads to crashes when fork safety is
88+ # enabled. This often happens when urllib tries to request proxy
99+ # settings on MacOS through `urllib.request.getproxies()`
1010+ # - https://github.com/python/cpython/issues/77906
1111+ if [[ "$OSTYPE" == "darwin"* ]]; then
1212+ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
1313+ fi
614}
715816# the flags should be added before pytestCheckHook runs so