Merge pull request #250554 from GaetanLepage/gymnasium
python310Packages.gymnasium: 0.29.0 -> 0.29.1
This commit is contained in:
commit
0ebafc3008
3 changed files with 88 additions and 9 deletions
|
@ -10,34 +10,67 @@
|
|||
, farama-notifications
|
||||
, importlib-metadata
|
||||
, pythonOlder
|
||||
, ffmpeg
|
||||
, jax
|
||||
, jaxlib
|
||||
, matplotlib
|
||||
, moviepy
|
||||
, opencv4
|
||||
, pybox2d
|
||||
, pygame
|
||||
, pytestCheckHook
|
||||
, scipy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gymnasium";
|
||||
version = "0.29.0";
|
||||
version = "0.29.1";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Farama-Foundation";
|
||||
repo = pname;
|
||||
repo = "gymnasium";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-4YaEFEWSOTEdGgO1kSOleZQp7OrcOf+WAT/E0BWeoKI=";
|
||||
hash = "sha256-L7fn9FaJzXwQhjDKwI9hlFpbPuQdwynU+Xjd8bbjxiw=";
|
||||
};
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jax-jumpy
|
||||
cloudpickle
|
||||
numpy
|
||||
gym-notices
|
||||
typing-extensions
|
||||
farama-notifications
|
||||
gym-notices
|
||||
jax-jumpy
|
||||
numpy
|
||||
typing-extensions
|
||||
] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
|
||||
|
||||
pythonImportsCheck = [ "gymnasium" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
ffmpeg
|
||||
jax
|
||||
jaxlib
|
||||
matplotlib
|
||||
moviepy
|
||||
opencv4
|
||||
pybox2d
|
||||
pygame
|
||||
pytestCheckHook
|
||||
scipy
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# mujoco is required for those tests but the mujoco python bindings are not packaged in nixpkgs.
|
||||
"tests/envs/mujoco/test_mujoco_custom_env.py"
|
||||
|
||||
# Those tests need to write on the filesystem which cause them to fail.
|
||||
"tests/experimental/wrappers/test_record_video.py"
|
||||
"tests/utils/test_save_video.py"
|
||||
"tests/wrappers/test_record_video.py"
|
||||
"tests/wrappers/test_video_recorder.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A standard API for reinforcement learning and a diverse set of reference environments (formerly Gym)";
|
||||
homepage = "https://github.com/Farama-Foundation/Gymnasium";
|
||||
|
|
44
pkgs/development/python-modules/pybox2d/default.nix
Normal file
44
pkgs/development/python-modules/pybox2d/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, swig
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pybox2d";
|
||||
version = "2.3.10";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pybox2d";
|
||||
repo = "pybox2d";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-yjLFvsg8GQLxjN1vtZM9zl+kAmD4+eS/vzRkpj0SCjY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
swig
|
||||
];
|
||||
|
||||
# We need to build the package explicitly a first time so that the library/Box2D/Box2D.py file
|
||||
# gets generated.
|
||||
# After that, the default behavior will succeed at installing the package.
|
||||
preBuild = ''
|
||||
python setup.py build
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"Box2D"
|
||||
"Box2D._Box2D"
|
||||
];
|
||||
|
||||
# Tests need to start GUI windows.
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "2D Game Physics for Python";
|
||||
homepage = "https://github.com/pybox2d/pybox2d";
|
||||
license = licenses.zlib;
|
||||
maintainers = with maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
|
@ -8794,6 +8794,8 @@ self: super: with self; {
|
|||
|
||||
pybotvac = callPackage ../development/python-modules/pybotvac { };
|
||||
|
||||
pybox2d = callPackage ../development/python-modules/pybox2d { };
|
||||
|
||||
pybravia = callPackage ../development/python-modules/pybravia { };
|
||||
|
||||
pybrowserid = callPackage ../development/python-modules/pybrowserid { };
|
||||
|
|
Loading…
Reference in a new issue