unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Timothee Mathieu <timothee.mathieu@inria.fr>
To: 69073@debbugs.gnu.org
Cc: Timothee Mathieu <timothee.mathieu@inria.fr>
Subject: [bug#69073] [PATCH] gnu: Add python-gymnasium.
Date: Mon, 12 Feb 2024 15:10:07 +0100	[thread overview]
Message-ID: <2187e1c4674f989b876d4de0bfbf805fdd4ae81b.1707747007.git.timothee.mathieu@inria.fr> (raw)

* gnu/packages/machine-learning.scm (python-gymnasium): New variable.

Change-Id: I22564c63b24ae98896f2e7b7da679463bd6b8496
---
 gnu/packages/machine-learning.scm | 53 +++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 7653608fd9..e052ff9054 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -5365,3 +5365,56 @@ (define-public oneapi-dnnl
      "OneAPI Deep Neural Network Library (oneDNN) is a cross-platform
 performance library of basic building blocks for deep learning applications.")
     (license license:asl2.0)))
+
+
+(define-public python-gymnasium
+  (package
+    (name "python-gymnasium")
+    (version "0.29.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "gymnasium" version))
+       (sha256
+        (base32 "1cab4wsnlsxn2z90qmymv8ppmsq8yq2amiqwid3r0xfbxx92flqs"))))
+
+    (arguments
+     (list
+      #:phases #~(modify-phases %standard-phases
+                   (replace 'check
+                     (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+                       (when tests?
+                         (add-installed-pythonpath inputs outputs)
+                         (invoke "touch" "tests/__init__.py")
+                         (invoke "pytest")))))))
+
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-cloudpickle python-farama-notifications
+                             python-importlib-metadata python-numpy
+                             python-typing-extensions))
+    (native-inputs (list python-pytest python-scipy))
+    (home-page "https://gymnasium.farama.org/")
+    (synopsis
+     "Standard API for reinforcement learning and a set of reference environments")
+    (description
+     "This package provides a standard API for reinforcement learning and a diverse
+set of reference environments (formerly Gym).")
+    (license license:expat)))
+
+
+(define-public python-farama-notifications
+  (package
+    (name "python-farama-notifications")
+    (version "0.0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "Farama-Notifications" version))
+       (sha256
+        (base32 "067xbra8xicgk7p6wcv5s73k6dxz5r36d0iwf20cy523s7rfzz0k"))))
+    (build-system pyproject-build-system)
+    (home-page "https://github.com/Farama-Foundation/Farama-Notifications")
+    (synopsis "Notifications for all Farama Foundation maintained libraries")
+    (description
+     "Notifications for all Farama Foundation maintained libraries.")
+    (license license:expat)))

base-commit: 5d2302a1959d09e6d5a5f02ac199458095847a82
-- 
2.41.0







             reply	other threads:[~2024-02-12 14:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-12 14:10 Timothee Mathieu [this message]
2024-02-16  7:01 ` bug#69073: [PATCH] gnu: Add python-gymnasium Ricardo Wurmus

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=2187e1c4674f989b876d4de0bfbf805fdd4ae81b.1707747007.git.timothee.mathieu@inria.fr \
    --to=timothee.mathieu@inria.fr \
    --cc=69073@debbugs.gnu.org \
    /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).