summary refs log blame commit diff
path: root/pkgs/development/python-modules/gym/default.nix
blob: 888dbf45342e5a51d2fbe788927b748e47df0d27 (plain) (tree)
1
2
3
4
5
6
7
8
9
     







                    



                        
                     
 



                         
                                                                   


                           





               




                                                   
                                 
 
                    
                                                                                              
                                         



                                                 
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, requests
, pyglet
, scipy
, pillow
, cloudpickle
}:

buildPythonPackage rec {
  pname = "gym";
  version = "0.18.3";

  src = fetchFromGitHub {
    owner = "openai";
    repo = pname;
    rev = version;
    sha256 = "sha256-10KHUG6WacYzqna97vEhSQWDmJDvDmD5QxLhPW5NQSs=";
  };

  propagatedBuildInputs = [
    cloudpickle
    numpy
    pillow
    pyglet
    requests
    scipy
  ];

  # The test needs MuJoCo that is not free library.
  doCheck = false;

  pythonImportsCheck = [ "gym" ];

  meta = with lib; {
    description = "A toolkit for developing and comparing your reinforcement learning agents";
    homepage = "https://gym.openai.com/";
    license = licenses.mit;
    maintainers = with maintainers; [ hyphon81 ];
  };
}