2018-11-10 20:09:19 -08:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage, fetchPypi
|
2019-10-26 17:14:36 -07:00
|
|
|
, numpy, requests, six, pyglet, scipy, cloudpickle
|
2018-11-10 20:09:19 -08:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gym";
|
2020-02-13 07:03:32 -08:00
|
|
|
version = "0.15.6";
|
2018-11-10 20:09:19 -08:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-13 07:03:32 -08:00
|
|
|
sha256 = "0qpx4w6k42sb9ncjk4r6i22qjbcxcnha43svhvvq1nh7796xqzgd";
|
2018-11-10 20:09:19 -08:00
|
|
|
};
|
|
|
|
|
2019-10-26 17:14:36 -07:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pyglet>=1.2.0,<=1.3.2" "pyglet"
|
|
|
|
'';
|
|
|
|
|
2018-11-10 20:09:19 -08:00
|
|
|
propagatedBuildInputs = [
|
2019-10-26 17:14:36 -07:00
|
|
|
numpy requests six pyglet scipy cloudpickle
|
2018-11-10 20:09:19 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
# The test needs MuJoCo that is not free library.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-12-14 17:02:15 -08:00
|
|
|
description = "A toolkit by OpenAI for developing and comparing your reinforcement learning agents";
|
2018-11-10 20:09:19 -08:00
|
|
|
homepage = https://gym.openai.com/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hyphon81 ];
|
|
|
|
};
|
|
|
|
}
|