12 buildPythonPackage rec {
15 format = "setuptools";
17 src = fetchFromGitHub {
20 rev = "refs/tags/${version}";
21 hash = "sha256-uJgm8l1SxIRC5PV6BIH/ht/1ucGT5UaUhkFMdusejgA=";
24 propagatedBuildInputs = [
28 ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
30 # The test needs MuJoCo that is not free library.
33 pythonImportsCheck = [ "gym" ];
36 description = "Toolkit for developing and comparing your reinforcement learning agents";
37 homepage = "https://gym.openai.com/";
38 license = licenses.mit;
39 maintainers = with maintainers; [ hyphon81 ];