@@ -1,19 +1,32 @@
11{ lib
2−, buildPythonPackage, fetchPypi
3−, numpy, requests, six, pyglet, scipy, cloudpickle
2+, buildPythonPackage
3+, fetchFromGitHub
4+, numpy
5+, requests
6+, pyglet
7+, scipy
8+, pillow
9+, cloudpickle
410}:
511
612buildPythonPackage rec {
713 pname = "gym";
8− version = "0.18.0";
14+ version = "0.18.1";
915
10− src = fetchPypi {
11− inherit pname version;
12− sha256 = "a0dcd25c1373f3938f4cb4565f74f434fba6faefb73a42d09c9dddd0c08af53e";
16+ src = fetchFromGitHub {
17+ owner = "openai";
18+ repo = pname;
19+ rev = version;
20+ sha256 = "0mv4af2y9d1y97bsda94f21nis2jm1zkzv7c806vmvzh5s4r8nfn";
1321 };
1422
1523 propagatedBuildInputs = [
16− numpy requests six pyglet scipy cloudpickle
24+ cloudpickle
25+ numpy
26+ pillow
27+ pyglet
28+ requests
29+ scipy
1730 ];
1831
1932 # The test needs MuJoCo that is not free library.
@@ -22,7 +35,7 @@ buildPythonPackage rec {
2235 pythonImportsCheck = [ "gym" ];
2336
2437 meta = with lib; {
25− description = "A toolkit by OpenAI for developing and comparing your reinforcement learning agents";
38+ description = "A toolkit for developing and comparing your reinforcement learning agents";
2639 homepage = "https://gym.openai.com/";
2740 license = licenses.mit;
2841 maintainers = with maintainers; [ hyphon81 ];