nixpkgs/pkgs/development/python-modules/gym/default.nix

49 lines
885 B
Nix
Raw Normal View History

{ lib
2021-04-29 09:12:52 +00:00
, buildPythonPackage
, fetchFromGitHub
, numpy
, requests
, pyglet
, scipy
, pillow
, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
2021-07-09 20:16:49 +00:00
version = "0.18.3";
2021-04-29 09:12:52 +00:00
src = fetchFromGitHub {
owner = "openai";
repo = pname;
rev = version;
2021-07-09 20:16:49 +00:00
sha256 = "sha256-10KHUG6WacYzqna97vEhSQWDmJDvDmD5QxLhPW5NQSs=";
};
propagatedBuildInputs = [
2021-04-29 09:12:52 +00:00
cloudpickle
numpy
pillow
pyglet
requests
scipy
];
postPatch = ''
substituteInPlace setup.py \
--replace "Pillow<=8.2.0" "Pillow"
'';
# The test needs MuJoCo that is not free library.
doCheck = false;
pythonImportsCheck = [ "gym" ];
meta = with lib; {
2021-04-29 09:12:52 +00:00
description = "A toolkit for developing and comparing your reinforcement learning agents";
2020-03-03 03:24:58 +00:00
homepage = "https://gym.openai.com/";
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];
};
}