* [bug#69073] [PATCH] gnu: Add python-gymnasium.
@ 2024-02-12 14:10 Timothee Mathieu
2024-02-16 7:01 ` bug#69073: " Ricardo Wurmus
0 siblings, 1 reply; 2+ messages in thread
From: Timothee Mathieu @ 2024-02-12 14:10 UTC (permalink / raw)
To: 69073; +Cc: Timothee Mathieu
* 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#69073: [PATCH] gnu: Add python-gymnasium.
2024-02-12 14:10 [bug#69073] [PATCH] gnu: Add python-gymnasium Timothee Mathieu
@ 2024-02-16 7:01 ` Ricardo Wurmus
0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2024-02-16 7:01 UTC (permalink / raw)
To: 69073-done
Thank you for your patch! I split it into two commits, updated the
description, and made other minor changes.
Pushed to the master branch with commit
c83d67b8099c77a9c9afcf4b6960bf27e225cd66.
Thanks!
--
Ricardo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-16 7:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-12 14:10 [bug#69073] [PATCH] gnu: Add python-gymnasium Timothee Mathieu
2024-02-16 7:01 ` bug#69073: " Ricardo Wurmus
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).