nixpkgs/pkgs/development/python-modules/gym/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
712 B
Nix
Raw Normal View History

{ lib
2021-04-29 09:12:52 +00:00
, buildPythonPackage
, fetchFromGitHub
, numpy
, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
2022-01-14 00:58:23 +00:00
version = "0.21.0";
2021-04-29 09:12:52 +00:00
src = fetchFromGitHub {
owner = "openai";
repo = pname;
2022-02-07 20:51:40 +00:00
rev = "v${version}";
2022-01-14 00:58:23 +00:00
sha256 = "12b545xz0r2g4z5r7f8amxl7nm0lqymkzwcwhg1bni9h0sxwpv6c";
};
propagatedBuildInputs = [
2021-04-29 09:12:52 +00:00
cloudpickle
numpy
];
# The test needs MuJoCo that is not free library.
doCheck = false;
pythonImportsCheck = [ "gym" ];
meta = with lib; {
2021-04-29 09:12:52 +00: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 ];
};
}