* [bug#54067] [PATCH] gnu: Add python-gym.
@ 2022-02-19 21:29 kiasoc5--- via Guix-patches via
2022-02-20 10:35 ` Maxime Devos
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: kiasoc5--- via Guix-patches via @ 2022-02-19 21:29 UTC (permalink / raw)
To: 54067
[-- Attachment #1: Type: text/plain, Size: 147 bytes --]
Importing this module in python fails because python-importlib-metadata is too old. At least it builds successfully when sanity check is disabled.
[-- Attachment #2: 0001-gnu-Add-python-gym.patch --]
[-- Type: text/x-patch, Size: 1670 bytes --]
From 2fd8ce0ccab54cc94269f6d03be755d5e145027f Mon Sep 17 00:00:00 2001
From: kiasoc5 <kiasoc5@tutanota.com>
Date: Sat, 19 Feb 2022 16:25:01 -0500
Subject: [PATCH] gnu: Add python-gym.
* gnu/packages/python-science.scm (python-gym): New variable.
---
gnu/packages/python-science.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index d9af3352b9..baf621870d 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1074,3 +1074,28 @@ (define-public python-modin
libraries, Modin provides seamless integration and compatibility with existing
pandas code.")
(license license:asl2.0)))
+
+(define-public python-gym
+ (package
+ (name "python-gym")
+ (version "0.22.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "gym" version))
+ (sha256
+ (base32 "138lk1irl9qr7yg6kng9z6aicbqfphcij4bqqf3q2xaik744949k"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'check) ; tests require nonfree library
+ (delete 'sanity-check)))) ; requires python-importlib-metadata>4.10
+ (propagated-inputs
+ (list python-cloudpickle python-numpy python-importlib-metadata))
+ (home-page "https://github.com/openai/gym")
+ (synopsis "Gym: A universal API for reinforcement learning environments.")
+ (description
+ "Gym: A universal API for reinforcement learning environments.")
+ (license license:expat)))
+
base-commit: f8aa8899e265a46fd3dff6c717ec484057ba2b68
--
2.35.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#54067] [PATCH] gnu: Add python-gym.
2022-02-19 21:29 [bug#54067] [PATCH] gnu: Add python-gym kiasoc5--- via Guix-patches via
@ 2022-02-20 10:35 ` Maxime Devos
[not found] ` <MwNSU61--3-2@tutanota.com>
2022-02-20 10:36 ` Maxime Devos
2024-01-29 21:58 ` bug#54067: " Sharlatan Hellseher
2 siblings, 1 reply; 5+ messages in thread
From: Maxime Devos @ 2022-02-20 10:35 UTC (permalink / raw)
To: kiasoc5, 54067
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
kiasoc5--- via Guix-patches via schreef op za 19-02-2022 om 22:29 [+0100]:
Importing this module in python fails because python-importlib-
metadata is too old.
> + (delete 'sanity-check)))) ; requires python-importlib-metadata>4.10
In that case, could python-importlib-metadata be updated?
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#54067] [PATCH] gnu: Add python-gym.
2022-02-19 21:29 [bug#54067] [PATCH] gnu: Add python-gym kiasoc5--- via Guix-patches via
2022-02-20 10:35 ` Maxime Devos
@ 2022-02-20 10:36 ` Maxime Devos
2024-01-29 21:58 ` bug#54067: " Sharlatan Hellseher
2 siblings, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2022-02-20 10:36 UTC (permalink / raw)
To: kiasoc5, 54067
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
kiasoc5--- via Guix-patches via schreef op za 19-02-2022 om 22:29
[+0100]:
> + `(#:phases
> + (modify-phases %standard-phases
> + (delete 'check) ; tests require nonfree library
How about setting the #:tests? argument instead?
(arguments
(list
#:tests? #false ; tests require nonfree library
#:phases
#~(modify-phases ...)))
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#54067: [PATCH] gnu: Add python-gym.
2022-02-19 21:29 [bug#54067] [PATCH] gnu: Add python-gym kiasoc5--- via Guix-patches via
2022-02-20 10:35 ` Maxime Devos
2022-02-20 10:36 ` Maxime Devos
@ 2024-01-29 21:58 ` Sharlatan Hellseher
2 siblings, 0 replies; 5+ messages in thread
From: Sharlatan Hellseher @ 2024-01-29 21:58 UTC (permalink / raw)
To: 54067-done
[-- Attachment #1: Type: text/plain, Size: 519 bytes --]
From the project's page https://github.com/openai/gym:
> The team that has been maintaining Gym since 2021 has moved all future
> development to Gymnasium, a drop in replacement for Gym (import
> gymnasium as gym), and Gym will not be receiving any future updates.
> Please switch over to Gymnasium as soon as you're able to do so. If
> you'd like to read more about the story behind this switch, please check
> out this blog post.
Gymnasium is successor of Gym.
Closing as not actual.
Thanks,
Oleg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-01-29 21:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-19 21:29 [bug#54067] [PATCH] gnu: Add python-gym kiasoc5--- via Guix-patches via
2022-02-20 10:35 ` Maxime Devos
[not found] ` <MwNSU61--3-2@tutanota.com>
2022-02-20 19:12 ` Maxime Devos
2022-02-20 10:36 ` Maxime Devos
2024-01-29 21:58 ` bug#54067: " Sharlatan Hellseher
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.