diff --git a/pkgs/development/python-modules/gym/default.nix b/pkgs/development/python-modules/gym/default.nix new file mode 100644 index 000000000000..61b74ad69285 --- /dev/null +++ b/pkgs/development/python-modules/gym/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage, fetchPypi +, numpy, requests, six, pyglet, scipy +}: + +buildPythonPackage rec { + pname = "gym"; + version = "0.9.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "0llbhn3zdlsz2crd5grd1yygg8zp2shsclc24iqix5gw5f65clx5"; + }; + + propagatedBuildInputs = [ + numpy requests six pyglet scipy + ]; + + # The test needs MuJoCo that is not free library. + doCheck = false; + + meta = with lib; { + description = "A toolkit by OpenAI for developing and comparing your reinforcement learning agents"; + homepage = https://gym.openai.com/; + license = licenses.mit; + maintainers = with maintainers; [ hyphon81 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a9ecf9495e17..598e4839b9ab 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2607,6 +2607,8 @@ in { gspread = callPackage ../development/python-modules/gspread { }; + gym = callPackage ../development/python-modules/gym { }; + gyp = callPackage ../development/python-modules/gyp { }; guessit = callPackage ../development/python-modules/guessit { };