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