depot/third_party/nixpkgs/pkgs/development/python-modules/gym/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

35 lines
705 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
version = "0.22.0";
src = fetchFromGitHub {
owner = "openai";
repo = pname;
rev = version;
sha256 = "sha256-JbPWLuQGo+fErUlCKKpMwWdu0KvXBDuH2MeAHdJCTgM=";
};
propagatedBuildInputs = [
cloudpickle
numpy
];
# The test needs MuJoCo that is not free library.
doCheck = false;
pythonImportsCheck = [ "gym" ];
meta = with lib; {
description = "A toolkit for developing and comparing your reinforcement learning agents";
homepage = "https://gym.openai.com/";
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];
};
}