1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, numpy
5, cloudpickle
6}:
7
8buildPythonPackage rec {
9 pname = "gym";
10 version = "0.19.0";
11
12 src = fetchFromGitHub {
13 owner = "openai";
14 repo = pname;
15 rev = version;
16 sha256 = "sha256-0O/s9OVNGQmeX9j8B1x63RxdI6dhqfTEJcgDH2jtCv4=";
17 };
18
19 propagatedBuildInputs = [
20 cloudpickle
21 numpy
22 ];
23
24 # The test needs MuJoCo that is not free library.
25 doCheck = false;
26
27 pythonImportsCheck = [ "gym" ];
28
29 meta = with lib; {
30 description = "A toolkit for developing and comparing your reinforcement learning agents";
31 homepage = "https://gym.openai.com/";
32 license = licenses.mit;
33 maintainers = with maintainers; [ hyphon81 ];
34 };
35}