unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [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

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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).