3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #198956 from BillHuang2001/update/gym

This commit is contained in:
Ben Siraphob 2022-11-01 09:47:40 -05:00 committed by GitHub
commit ed58834ee0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 4 deletions

View file

@ -0,0 +1,24 @@
{ 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 ];
};
}

View file

@ -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;

View file

@ -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 { };