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

34 lines
793 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage, fetchPypi
2019-10-27 02:14:36 +02:00
, numpy, requests, six, pyglet, scipy, cloudpickle
}:
buildPythonPackage rec {
pname = "gym";
2020-03-03 04:24:58 +01:00
version = "0.16.0";
src = fetchPypi {
inherit pname version;
2020-03-03 04:24:58 +01:00
sha256 = "06h5b639nmzhmy4m1j3vigm86iv5pv7k8jy6xpldyd4jdlf37nn5";
};
2019-10-27 02:14:36 +02:00
postPatch = ''
substituteInPlace setup.py \
--replace "pyglet>=1.2.0,<=1.3.2" "pyglet"
'';
propagatedBuildInputs = [
2019-10-27 02:14:36 +02:00
numpy requests six pyglet scipy cloudpickle
];
# The test needs MuJoCo that is not free library.
doCheck = false;
meta = with lib; {
2018-12-15 02:02:15 +01:00
description = "A toolkit by OpenAI for developing and comparing your reinforcement learning agents";
2020-03-03 04:24:58 +01:00
homepage = "https://gym.openai.com/";
license = licenses.mit;
maintainers = with maintainers; [ hyphon81 ];
};
}