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