python312Packages.ale-py: 0.10.1 -> 0.10.2 (#382070)

This commit is contained in:
Gaétan Lepage
2025-02-14 20:58:52 +01:00
committed by GitHub
@@ -1,7 +1,7 @@
{
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
# build-system
@@ -19,25 +19,22 @@
importlib-resources,
numpy,
typing-extensions,
importlib-metadata,
# checks
# tests
gymnasium,
pytestCheckHook,
stdenv,
}:
buildPythonPackage rec {
pname = "ale-py";
version = "0.10.1";
version = "0.10.2";
pyproject = true;
src = fetchFromGitHub {
owner = "Farama-Foundation";
repo = "Arcade-Learning-Environment";
tag = "v${version}";
hash = "sha256-MDMCYnyLZYbQXwyr5VuPeVEop825nD++yQ7hhsW4BX8=";
hash = "sha256-CGUlQFQoQZqs+Jd3IU/o50VwX+tEHrs3KHrcVWahEpo=";
};
build-system = [
@@ -57,7 +54,7 @@ buildPythonPackage rec {
importlib-resources
numpy
typing-extensions
] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
];
postPatch =
# Relax the pybind11 version
@@ -75,10 +72,13 @@ buildPythonPackage rec {
pytestCheckHook
];
# test_atari_env.py::test_check_env fails on the majority of the environments because the ROM are missing.
# The user is expected to manually download the roms:
# https://github.com/Farama-Foundation/Arcade-Learning-Environment/blob/v0.9.0/docs/faq.md#i-downloaded-ale-and-i-installed-it-successfully-but-i-cannot-find-any-rom-file-at-roms-do-i-have-to-get-them-somewhere-else
disabledTests = [ "test_check_env" ];
disabledTests = [
# test_atari_env.py tests fail on the majority of the environments because the ROM are missing.
# The user is expected to manually download the roms:
# https://github.com/Farama-Foundation/Arcade-Learning-Environment/blob/v0.9.0/docs/faq.md#i-downloaded-ale-and-i-installed-it-successfully-but-i-cannot-find-any-rom-file-at-roms-do-i-have-to-get-them-somewhere-else
"test_check_env"
"test_sound_obs"
];
meta = {
description = "Simple framework that allows researchers and hobbyists to develop AI agents for Atari 2600 games";
@@ -87,6 +87,9 @@ buildPythonPackage rec {
changelog = "https://github.com/Farama-Foundation/Arcade-Learning-Environment/releases/tag/v${version}";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ billhuang ];
broken = stdenv.hostPlatform.isDarwin; # fails to link with missing library
badPlatforms = [
# fails to link with missing library
lib.systems.inspect.patterns.isDarwin
];
};
}