mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
36 lines
705 B
Nix
36 lines
705 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, numpy
|
|
, cloudpickle
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gym";
|
|
version = "0.19.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openai";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-0O/s9OVNGQmeX9j8B1x63RxdI6dhqfTEJcgDH2jtCv4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|