forked from mirrors/nixpkgs
Merge pull request #198956 from BillHuang2001/update/gym
This commit is contained in:
commit
ed58834ee0
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
|
||||
, 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;
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue