From 03a1fef71da2b5b285f6d0231ede6015881705e9 Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Sat, 17 May 2025 11:24:15 +0200 Subject: [PATCH] python3Packages.gymnasium: explicitly use dummy videodriver in checkPhase Signed-off-by: Marcin Serwin --- pkgs/development/python-modules/gymnasium/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/gymnasium/default.nix b/pkgs/development/python-modules/gymnasium/default.nix index c98c3d7cb119..e2a18f356ce8 100644 --- a/pkgs/development/python-modules/gymnasium/default.nix +++ b/pkgs/development/python-modules/gymnasium/default.nix @@ -89,6 +89,10 @@ buildPythonPackage rec { "tests/wrappers/test_record_video.py" ]; + preCheck = '' + export SDL_VIDEODRIVER=dummy + ''; + disabledTests = [ # Fails since jax 0.6.0 # Fixed on master https://github.com/Farama-Foundation/Gymnasium/commit/94019feee1a0f945b9569cddf62780f4e1a224a5