summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-07-23 08:02:40 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-08-04 20:36:46 +0000
commit3661a255938232d3517690452f0f4e5ff794d9a7 (patch)
tree2c5680f958a2f720891288a5429f6bbcc0bdfb6f
parentMerge pull request #132630 from NixOS/backport-132471-to-release-21.05 (diff)
downloadnixpkgs-3661a255938232d3517690452f0f4e5ff794d9a7.tar.gz
python3Packages.gym: fix buildorigin/backport-131176-to-release-21.05
Tested by running one of their code examples (cherry picked from commit 13cef561850fc6ee01de09f945c0e6047c26ef3c)
-rw-r--r--pkgs/development/python-modules/gym/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gym/default.nix b/pkgs/development/python-modules/gym/default.nix
index a1cd76cd38e4..08f248acd302 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;