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

                               
                                                  



                        
                     


                          
                                                                                

    




                                                
                           
                                               





                                                   
                                                                                                        




                                                 
{ lib
, buildPythonPackage, fetchPypi
, numpy, requests, six, pyglet, scipy, cloudpickle
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "3b930cbe1c76bbd30455b5e82ba723dea94159a5f988e927f443324bf7cc7ddd";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "pyglet>=1.2.0,<=1.3.2" "pyglet"
  '';

  propagatedBuildInputs = [
    numpy requests six pyglet scipy cloudpickle
  ];

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

  meta = with lib; {
    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 ];
  };
}