Unverified Commit ed58834e authored by Ben Siraphob's avatar Ben Siraphob Committed by GitHub
Browse files

Merge pull request #198956 from BillHuang2001/update/gym

parents 8a837a95 06c9d4d9
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "gym-notices";
  version = "0.0.8";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-rSXiAEh8r6NpcoYl/gZOiK2hNGYYUmECZZtGQPK0uRE=";
  };

  pythonImportsCheck = [ "gym_notices" ];

  meta = with lib; {
    description = "Notices for Python package Gym";
    homepage = "https://github.com/Farama-Foundation/gym-notices";
    license = licenses.mit;
    maintainers = with maintainers; [ billhuang ];
  };
}
+8 −4
Original line number Diff line number Diff line
@@ -3,23 +3,27 @@
, fetchFromGitHub
, numpy
, cloudpickle
, gym-notices
, importlib-metadata
, pythonOlder
}:

buildPythonPackage rec {
  pname = "gym";
  version = "0.21.0";
  version = "0.26.2";

  src = fetchFromGitHub {
    owner = "openai";
    repo = pname;
    rev = "v${version}";
    sha256 = "12b545xz0r2g4z5r7f8amxl7nm0lqymkzwcwhg1bni9h0sxwpv6c";
    rev = "${version}";
    sha256 = "sha256-uJgm8l1SxIRC5PV6BIH/ht/1ucGT5UaUhkFMdusejgA=";
  };

  propagatedBuildInputs = [
    cloudpickle
    numpy
  ];
    gym-notices
  ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];

  # The test needs MuJoCo that is not free library.
  doCheck = false;
+2 −0
Original line number Diff line number Diff line
@@ -4055,6 +4055,8 @@ self: super: with self; {

  gym = callPackage ../development/python-modules/gym { };

  gym-notices = callPackage ../development/python-modules/gym-notices { };

  gyp = callPackage ../development/python-modules/gyp { };

  h11 = callPackage ../development/python-modules/h11 { };