Merge pull request #297980 from Samasaur1/disable-check-gymnasium-darwin

gymnasium: disable doCheck on Darwin
This commit is contained in:
Weijia Wang 2024-03-22 16:17:46 +01:00 committed by GitHub
commit f474830be6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@
, pygame
, pytestCheckHook
, scipy
, stdenv
}:
buildPythonPackage rec {
@ -60,6 +61,12 @@ buildPythonPackage rec {
scipy
];
# if `doCheck = true` on Darwin, `jaxlib` is evaluated, which is both
# marked as broken and throws an error during evaluation if the package is evaluated anyway.
# disabling checks on Darwin avoids this and allows the package to be built.
# if jaxlib is ever fixed on Darwin, remove this.
doCheck = !stdenv.isDarwin;
disabledTestPaths = [
# mujoco is required for those tests but the mujoco python bindings are not packaged in nixpkgs.
"tests/envs/mujoco/test_mujoco_custom_env.py"