[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#69073] [PATCH] gnu: Add python-gymnasium.
From: |
Timothee Mathieu |
Subject: |
[bug#69073] [PATCH] gnu: Add python-gymnasium. |
Date: |
Mon, 12 Feb 2024 15:10:07 +0100 |
* 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
- [bug#69073] [PATCH] gnu: Add python-gymnasium.,
Timothee Mathieu <=