From 43cea7b6e46b4e824f9a8b3b622f0e4a20f6d3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 23 Jul 2021 08:02:40 +0200 Subject: [PATCH] python3Packages.gym: fix build Tested by running one of their code examples (cherry picked from commit 13cef561850fc6ee01de09f945c0e6047c26ef3c) --- pkgs/development/python-modules/gym/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/gym/default.nix b/pkgs/development/python-modules/gym/default.nix index a1cd76cd38e..08f248acd30 100644 --- a/pkgs/development/python-modules/gym/default.nix +++ b/pkgs/development/python-modules/gym/default.nix @@ -29,6 +29,11 @@ buildPythonPackage rec { scipy ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "Pillow<=8.2.0" "Pillow" + ''; + # The test needs MuJoCo that is not free library. doCheck = false;