mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
b708a3523a
* python3Packages.gym: remove unnecessary string interpolation * python3Packages.gym: use "refs/tags/foo" instead of "foo" Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com> Co-authored-by: Martin Weinelt <mweinelt@users.noreply.github.com>
40 lines
846 B
Nix
40 lines
846 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, numpy
|
|
, cloudpickle
|
|
, gym-notices
|
|
, importlib-metadata
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gym";
|
|
version = "0.26.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openai";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-uJgm8l1SxIRC5PV6BIH/ht/1ucGT5UaUhkFMdusejgA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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; {
|
|
description = "A toolkit for developing and comparing your reinforcement learning agents";
|
|
homepage = "https://gym.openai.com/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hyphon81 ];
|
|
};
|
|
}
|