Gaetan Lepage 2024-09-24 07:32:51 +02:00 committed by Gaétan Lepage
parent 32f0bfd993
commit d3e5730bbd

View File

@ -30,16 +30,14 @@
buildPythonPackage rec {
pname = "ale-py";
version = "0.9.1";
version = "0.10.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Farama-Foundation";
repo = "Arcade-Learning-Environment";
rev = "refs/tags/v${version}";
hash = "sha256-MpumAQ5OW/+fRIvrBlRWkgioxMVceb5LxEH2JjRk5zY=";
hash = "sha256-JQG8Db7OEKQ7THkHJ+foUm/L7Ctr0Ur8nb6Zc2Z/MJI=";
};
build-system = [
@ -64,12 +62,8 @@ buildPythonPackage rec {
postPatch =
# Relax the pybind11 version
''
substituteInPlace src/python/CMakeLists.txt \
substituteInPlace src/ale/python/CMakeLists.txt \
--replace-fail 'find_package(pybind11 ''${PYBIND11_VER} QUIET)' 'find_package(pybind11 QUIET)'
''
+ ''
substituteInPlace pyproject.toml \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
dontUseCmakeConfigure = true;