11 buildPythonPackage rec {
15 src = fetchFromGitHub {
18 rev = "refs/tags/${version}";
19 hash = "sha256-uJgm8l1SxIRC5PV6BIH/ht/1ucGT5UaUhkFMdusejgA=";
22 propagatedBuildInputs = [
26 ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
28 # The test needs MuJoCo that is not free library.
31 pythonImportsCheck = [ "gym" ];
34 description = "A toolkit for developing and comparing your reinforcement learning agents";
35 homepage = "https://gym.openai.com/";
36 license = licenses.mit;
37 maintainers = with maintainers; [ hyphon81 ];