From 457241dab4b6e9423009d2bd9c1db6fbcaef209a Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 31 Oct 2024 17:08:57 +0100 Subject: [PATCH] python3Packages.pytest-xdist: change pytestFlagsArray in preCheck hook We don't want to depend on bash eval in pytestFlagsArray to be able to remove it, thus move it to bash code in preCheck. --- pkgs/development/python-modules/pytest-xdist/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pytest-xdist/default.nix b/pkgs/development/python-modules/pytest-xdist/default.nix index 555c84031144..972d0bdf23c7 100644 --- a/pkgs/development/python-modules/pytest-xdist/default.nix +++ b/pkgs/development/python-modules/pytest-xdist/default.nix @@ -45,10 +45,10 @@ buildPythonPackage rec { setproctitle = [ setproctitle ]; }; - pytestFlagsArray = [ - # pytest can already use xdist at this point - "--numprocesses=$NIX_BUILD_CORES" - ]; + # pytest can already use xdist at this point + preCheck = '' + appendToVar pytestFlagsArray "--numprocesses=$NIX_BUILD_CORES" + ''; # access file system disabledTests = [