# torchrl needs to create a folder to store datasets
preBuild=''
exportD4RL_DATASET_DIR=$(mktemp-d)
'';
pythonImportsCheck=[
"torchrl"
];
# We have to delete the source because otherwise it is used instead of the installed package.
preCheck=''
rm-rftorchrl
exportXDG_RUNTIME_DIR=$(mktemp-d)
'';
nativeCheckInputs=[
gymnasium
imageio
pytest-rerunfailures
pytestCheckHook
pyyaml
scipy
]
++passthru.optional-dependencies.atari
++passthru.optional-dependencies.gym-continuous
++passthru.optional-dependencies.rendering;
disabledTests=[
# mujoco.FatalError: an OpenGL platform library has not been loaded into this process, this most likely means that a valid OpenGL context has not been created before mjr_makeContext was called
"test_vecenvs_env"
# ValueError: Can't write images with one color channel.
"test_log_video"
# Those tests require the ALE environments (provided by unpackaged shimmy)