1pytestXdistHook() { 2 appendToVar pytestFlags "--numprocesses=$NIX_BUILD_CORES" 3} 4 5if [ -z "${dontUsePytestXdist-}" ] && [ -z "${dontUsePytestCheck-}" ]; then 6 # The flags should be added before pytestCheckHook runs in preDistPhases. 7 preInstallCheckHooks+=(pytestXdistHook) 8fi