diff options
author | Sam <30577766+Samasaur1@users.noreply.github.com> | 2024-03-22 01:15:58 -0700 |
---|---|---|
committer | Sam <30577766+Samasaur1@users.noreply.github.com> | 2024-03-22 01:24:36 -0700 |
commit | 92a422a3957a89d048563b238bc10de4c19866c4 (patch) | |
tree | 2e8767f889fd09651634adc0d227ce778ee5b431 | |
parent | 6da17952083ff155d8642a8354868d8faee70a0a (diff) | |
download | nixlib-92a422a3957a89d048563b238bc10de4c19866c4.tar nixlib-92a422a3957a89d048563b238bc10de4c19866c4.tar.gz nixlib-92a422a3957a89d048563b238bc10de4c19866c4.tar.bz2 nixlib-92a422a3957a89d048563b238bc10de4c19866c4.tar.lz nixlib-92a422a3957a89d048563b238bc10de4c19866c4.tar.xz nixlib-92a422a3957a89d048563b238bc10de4c19866c4.tar.zst nixlib-92a422a3957a89d048563b238bc10de4c19866c4.zip |
gymnasium: disable doCheck on Darwin
if doCheck = true on darwin, jaxlib is evaluated, which errors
-rw-r--r-- | pkgs/development/python-modules/gymnasium/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gymnasium/default.nix b/pkgs/development/python-modules/gymnasium/default.nix index 6e9e33913fb7..ca7ba30927ab 100644 --- a/pkgs/development/python-modules/gymnasium/default.nix +++ b/pkgs/development/python-modules/gymnasium/default.nix @@ -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" |