nixpkgs/pkgs/development/python-modules/gym/default.nix
2021-04-03 17:48:34 +02:00

31 lines
734 B
Nix

{ lib
, buildPythonPackage, fetchPypi
, numpy, requests, six, pyglet, scipy, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
version = "0.18.0";
src = fetchPypi {
inherit pname version;
sha256 = "a0dcd25c1373f3938f4cb4565f74f434fba6faefb73a42d09c9dddd0c08af53e";
};
propagatedBuildInputs = [
numpy requests six pyglet scipy cloudpickle
];
# The test needs MuJoCo that is not free library.
doCheck = false;
pythonImportsCheck = [ "gym" ];
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 ];
};
}