nixpkgs/pkgs/development/python-modules/gym/default.nix
Jonathan Ringer ef3756ff1b Revert "python: gym: 0.15.3 -> 0.15.4"
0.15.4 requires python-opencv, which isn't packaged yet,
and is not trival to package

This reverts commit 8ee4062480.
2019-12-16 18:08:44 -08:00

34 lines
803 B
Nix

{ lib
, buildPythonPackage, fetchPypi
, numpy, requests, six, pyglet, scipy, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
version = "0.15.3";
src = fetchPypi {
inherit pname version;
sha256 = "18381e13bbd1e2f206a1b88a2af4fb87affd7d06ee7955a6e5e6a79478a9adfc";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pyglet>=1.2.0,<=1.3.2" "pyglet"
'';
propagatedBuildInputs = [
numpy requests six pyglet scipy cloudpickle
];
# The test needs MuJoCo that is not free library.
doCheck = false;
meta = with lib; {
description = "A toolkit by OpenAI for developing and comparing your reinforcement learning agents";
homepage = https://gym.openai.com/;
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];
};
}