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.

40 lines
846 B
Nix
Raw Normal View History

{ lib
2021-04-29 09:12:52 +00:00
, buildPythonPackage
, fetchFromGitHub
, numpy
, cloudpickle
, gym-notices
, importlib-metadata
, pythonOlder
}:
buildPythonPackage rec {
pname = "gym";
version = "0.26.2";
2021-04-29 09:12:52 +00:00
src = fetchFromGitHub {
owner = "openai";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-uJgm8l1SxIRC5PV6BIH/ht/1ucGT5UaUhkFMdusejgA=";
};
propagatedBuildInputs = [
2021-04-29 09:12:52 +00:00
cloudpickle
numpy
gym-notices
] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
# 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 ];
};
}