Commit d3e5730b authored by Gaetan Lepage's avatar Gaetan Lepage Committed by Gaétan Lepage
Browse files
parent 32f0bfd9
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -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;