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