From ba4f6569d258f2d9473c4b51834219c4a3b61431 Mon Sep 17 00:00:00 2001 From: Joshua Bronson Date: Fri, 29 Mar 2024 13:31:59 -0400 Subject: python3Packages.bidict: rm bundled pytest.ini ...instead of calling pytest with `-c /dev/null` to bypass it. For some reason the latter suddenly started failing with a PermissionError on Darwin after working fine for a while. Fixes #299933. --- pkgs/development/python-modules/bidict/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'pkgs/development/python-modules/bidict/default.nix') diff --git a/pkgs/development/python-modules/bidict/default.nix b/pkgs/development/python-modules/bidict/default.nix index 871e896dbd957..811fb7055fea7 100644 --- a/pkgs/development/python-modules/bidict/default.nix +++ b/pkgs/development/python-modules/bidict/default.nix @@ -36,12 +36,11 @@ buildPythonPackage rec { typing-extensions ]; - pytestFlagsArray = [ - # Pass -c /dev/null so that pytest does not use the bundled pytest.ini, which adds - # options to run additional integration tests that are overkill for our purposes. - "-c" - "/dev/null" - ]; + # Remove the bundled pytest.ini, which adds options to run additional integration + # tests that are overkill for our purposes. + preCheck = '' + rm pytest.ini + ''; pythonImportsCheck = [ "bidict" ]; -- cgit 1.4.1