nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 35 lines 712 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, numpy 5, cloudpickle 6}: 7 8buildPythonPackage rec { 9 pname = "gym"; 10 version = "0.21.0"; 11 12 src = fetchFromGitHub { 13 owner = "openai"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "12b545xz0r2g4z5r7f8amxl7nm0lqymkzwcwhg1bni9h0sxwpv6c"; 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}