26 , pytest-rerunfailures
32 buildPythonPackage rec {
37 disabled = pythonOlder "3.8";
39 src = fetchFromGitHub {
42 rev = "refs/tags/v${version}";
43 hash = "sha256-lETW996IKPUGgZpe+cyzrXvVmDSwj5G4XFreFmGxReQ=";
53 propagatedBuildInputs = [
61 passthru.optional-dependencies = {
83 # torchrl needs to create a folder to store datasets
85 export D4RL_DATASET_DIR=$(mktemp -d)
88 pythonImportsCheck = [
92 # We have to delete the source because otherwise it is used instead of the installed package.
96 export XDG_RUNTIME_DIR=$(mktemp -d)
107 ++ passthru.optional-dependencies.atari
108 ++ passthru.optional-dependencies.gym-continuous
109 ++ passthru.optional-dependencies.rendering;
112 # 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
115 # ValueError: Can't write images with one color channel.
118 # Those tests require the ALE environments (provided by unpackaged shimmy)
119 "test_collector_env_reset"
125 "test_parallel_trans_env_check"
126 "test_serial_trans_env_check"
127 "test_single_trans_env_check"
128 "test_td_creation_from_spec"
129 "test_trans_parallel_env_check"
130 "test_trans_serial_env_check"
135 description = "A modular, primitive-first, python-first PyTorch library for Reinforcement Learning";
136 homepage = "https://github.com/pytorch/rl";
137 changelog = "https://github.com/pytorch/rl/releases/tag/v${version}";
138 license = licenses.mit;
139 maintainers = with maintainers; [ GaetanLepage ];