2018-11-11 04:09:19 +00:00
|
|
|
{ lib
|
2021-04-29 10:12:52 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, cloudpickle
|
2018-11-11 04:09:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gym";
|
2021-08-18 17:37:39 +01:00
|
|
|
version = "0.19.0";
|
2018-11-11 04:09:19 +00:00
|
|
|
|
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=";
|
2018-11-11 04:09:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-04-29 10:12:52 +01:00
|
|
|
cloudpickle
|
|
|
|
numpy
|
2018-11-11 04:09:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# The test needs MuJoCo that is not free library.
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-11-04 01:59:35 +00:00
|
|
|
pythonImportsCheck = [ "gym" ];
|
2020-09-23 21:37:37 +01:00
|
|
|
|
2018-11-11 04:09:19 +00:00
|
|
|
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/";
|
2018-11-11 04:09:19 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hyphon81 ];
|
|
|
|
};
|
|
|
|
}
|