3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/gym/default.nix

34 lines
803 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage, fetchPypi
2019-10-27 01:14:36 +01:00
, numpy, requests, six, pyglet, scipy, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
2019-12-29 09:28:07 +00:00
version = "0.15.4";
src = fetchPypi {
inherit pname version;
2019-12-29 09:28:07 +00:00
sha256 = "3b930cbe1c76bbd30455b5e82ba723dea94159a5f988e927f443324bf7cc7ddd";
};
2019-10-27 01:14:36 +01:00
postPatch = ''
substituteInPlace setup.py \
--replace "pyglet>=1.2.0,<=1.3.2" "pyglet"
'';
propagatedBuildInputs = [
2019-10-27 01:14:36 +01:00
numpy requests six pyglet scipy cloudpickle
];
# 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";
homepage = https://gym.openai.com/;
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];
};
}