Merge pull request #198956 from BillHuang2001/update/gym
This commit is contained in:
commit
ed58834ee0
3 changed files with 34 additions and 4 deletions
24
pkgs/development/python-modules/gym-notices/default.nix
Normal file
24
pkgs/development/python-modules/gym-notices/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -3,23 +3,27 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, numpy
|
, numpy
|
||||||
, cloudpickle
|
, cloudpickle
|
||||||
|
, gym-notices
|
||||||
|
, importlib-metadata
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "gym";
|
pname = "gym";
|
||||||
version = "0.21.0";
|
version = "0.26.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "openai";
|
owner = "openai";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "${version}";
|
||||||
sha256 = "12b545xz0r2g4z5r7f8amxl7nm0lqymkzwcwhg1bni9h0sxwpv6c";
|
sha256 = "sha256-uJgm8l1SxIRC5PV6BIH/ht/1ucGT5UaUhkFMdusejgA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cloudpickle
|
cloudpickle
|
||||||
numpy
|
numpy
|
||||||
];
|
gym-notices
|
||||||
|
] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
|
||||||
|
|
||||||
# The test needs MuJoCo that is not free library.
|
# The test needs MuJoCo that is not free library.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
|
@ -4055,6 +4055,8 @@ self: super: with self; {
|
||||||
|
|
||||||
gym = callPackage ../development/python-modules/gym { };
|
gym = callPackage ../development/python-modules/gym { };
|
||||||
|
|
||||||
|
gym-notices = callPackage ../development/python-modules/gym-notices { };
|
||||||
|
|
||||||
gyp = callPackage ../development/python-modules/gyp { };
|
gyp = callPackage ../development/python-modules/gyp { };
|
||||||
|
|
||||||
h11 = callPackage ../development/python-modules/h11 { };
|
h11 = callPackage ../development/python-modules/h11 { };
|
||||||
|
|
Loading…
Reference in a new issue