summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/gym/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/gym/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/gym/default.nix')
-rw-r--r--pkgs/development/python-modules/gym/default.nix29
1 files changed, 21 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/gym/default.nix b/pkgs/development/python-modules/gym/default.nix
index 126606af73a9..a1cd76cd38e4 100644
--- a/pkgs/development/python-modules/gym/default.nix
+++ b/pkgs/development/python-modules/gym/default.nix
@@ -1,19 +1,32 @@
{ lib
-, buildPythonPackage, fetchPypi
-, numpy, requests, six, pyglet, scipy, cloudpickle
+, buildPythonPackage
+, fetchFromGitHub
+, numpy
+, requests
+, pyglet
+, scipy
+, pillow
+, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
- version = "0.18.0";
+ version = "0.18.1";
- src = fetchPypi {
- inherit pname version;
- sha256 = "a0dcd25c1373f3938f4cb4565f74f434fba6faefb73a42d09c9dddd0c08af53e";
+ src = fetchFromGitHub {
+ owner = "openai";
+ repo = pname;
+ rev = version;
+ sha256 = "0mv4af2y9d1y97bsda94f21nis2jm1zkzv7c806vmvzh5s4r8nfn";
};
propagatedBuildInputs = [
- numpy requests six pyglet scipy cloudpickle
+ cloudpickle
+ numpy
+ pillow
+ pyglet
+ requests
+ scipy
];
# The test needs MuJoCo that is not free library.
@@ -22,7 +35,7 @@ buildPythonPackage rec {
pythonImportsCheck = [ "gym" ];
meta = with lib; {
- description = "A toolkit by OpenAI for developing and comparing your reinforcement learning agents";
+ description = "A toolkit for developing and comparing your reinforcement learning agents";
homepage = "https://gym.openai.com/";
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];