unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: kiasoc5--- via Guix-patches via <guix-patches@gnu.org>
To: 54067@debbugs.gnu.org
Subject: [bug#54067] [PATCH] gnu: Add python-gym.
Date: Sat, 19 Feb 2022 22:29:33 +0100 (CET)	[thread overview]
Message-ID: <MwIsxM4--3-2@tutanota.com> (raw)

[-- 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


             reply	other threads:[~2022-02-19 21:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-19 21:29 kiasoc5--- via Guix-patches via [this message]
2022-02-20 10:35 ` [bug#54067] [PATCH] gnu: Add python-gym 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MwIsxM4--3-2@tutanota.com \
    --to=guix-patches@gnu.org \
    --cc=54067@debbugs.gnu.org \
    --cc=kiasoc5@tutanota.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).