3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/gym/default.nix

36 lines
705 B
Nix
Raw Normal View History

{ lib
2021-04-29 10:12:52 +01:00
, buildPythonPackage
, fetchFromGitHub
, numpy
, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
2021-08-18 17:37:39 +01:00
version = "0.19.0";
2021-04-29 10:12:52 +01:00
src = fetchFromGitHub {
owner = "openai";
repo = pname;
rev = version;
2021-08-18 17:37:39 +01:00
sha256 = "sha256-0O/s9OVNGQmeX9j8B1x63RxdI6dhqfTEJcgDH2jtCv4=";
};
propagatedBuildInputs = [
2021-04-29 10:12:52 +01:00
cloudpickle
numpy
];
# The test needs MuJoCo that is not free library.
doCheck = false;
pythonImportsCheck = [ "gym" ];
meta = with lib; {
2021-04-29 10:12:52 +01:00
description = "A toolkit for developing and comparing your reinforcement learning agents";
2020-03-03 03:24:58 +00:00
homepage = "https://gym.openai.com/";
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];
};
}