gymnasium: disable doCheck on Darwin

if doCheck = true on darwin, jaxlib is evaluated, which errors
This commit is contained in:
Sam 2024-03-22 01:15:58 -07:00
parent 6da1795208
commit 92a422a395
No known key found for this signature in database
GPG key ID: 07C4B9795517E3B4

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"