From 256fa808b50ef711a3ce7cb0c9a00ab56c46e963 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 06:46:45 +0100 Subject: [PATCH] python312Packages.pyvirtualdisplay: test without xdist High core counts tend to produce hangs and defunct python processes. And while upstream has put pytest-xdist into its test requirements they don't actually use it themselves either. --- pkgs/development/python-modules/pyvirtualdisplay/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyvirtualdisplay/default.nix b/pkgs/development/python-modules/pyvirtualdisplay/default.nix index 9905ee45e367..ac2a3bf68f69 100644 --- a/pkgs/development/python-modules/pyvirtualdisplay/default.nix +++ b/pkgs/development/python-modules/pyvirtualdisplay/default.nix @@ -14,6 +14,7 @@ entrypoint2, pillow, psutil, + pytest-timeout, pytest-xdist, pytestCheckHook, vncdo, @@ -47,7 +48,7 @@ buildPythonPackage rec { entrypoint2 pillow psutil - pytest-xdist + pytest-timeout pytestCheckHook (vncdo.overridePythonAttrs { doCheck = false; }) xorg.xorgserver @@ -55,6 +56,8 @@ buildPythonPackage rec { xorg.xvfb ]; + pytestFlagsArray = [ "-v" ]; + meta = with lib; { description = "Python wrapper for Xvfb, Xephyr and Xvnc"; homepage = "https://github.com/ponty/pyvirtualdisplay";