sharlatan pushed a commit to branch master
in repository guix.

commit 77a8c240e03838509a17692cc55861c1fa064b51
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Mar 22 22:36:35 2025 +0000

    gnu: python-gpy: Move to machine-learning.
    
    * gnu/packages/python-science.scm (python-gpy): Move from here ...
    * gnu/packages/machine-learning.scm: ... to here.
    
    Change-Id: Id1c8574c166014c87ffa484ea84f798eb7f53844
---
 gnu/packages/machine-learning.scm | 51 ++++++++++++++++++++++++++++++++++++++-
 gnu/packages/python-science.scm   | 48 ------------------------------------
 2 files changed, 50 insertions(+), 49 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index 8406830359..4ea05a7752 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -19,11 +19,12 @@
 ;;; Copyright © 2020, 2021, 2022, 2023 Maxim Cournoyer 
<[email protected]>
 ;;; Copyright © 2022, 2023 Nicolas Graves <[email protected]>
 ;;; Copyright © 2022 Kiran Shila <[email protected]>
+;;; Copyright © 2022 Wiktor Zelazny <[email protected]>
 ;;; Copyright © 2023 zamfofex <[email protected]>
 ;;; Copyright © 2023 Navid Afkhami <[email protected]>
 ;;; Copyright © 2023 Zheng Junjie <[email protected]>
 ;;; Copyright © 2023 Troy Figiel <[email protected]>
-;;; Copyright © 2024 Sharlatan Hellseher <[email protected]>
+;;; Copyright © 2024-2025 Sharlatan Hellseher <[email protected]>
 ;;; Copyright © 2024 David Pflug <[email protected]>
 ;;; Copyright © 2024 Timothee Mathieu <[email protected]>
 ;;; Copyright © 2024 Spencer King <[email protected]>
@@ -332,6 +333,54 @@ distribution estimation (one-class SVM).  It supports 
multi-class
 classification.")
     (license license:bsd-3)))
 
+(define-public python-gpy
+  (package
+    (name "python-gpy")
+    (version "1.13.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "GPy" version))
+       (sha256
+        (base32 "083rl8nr4nmmr1pzn0g8gsc4wi9dnhj3jjhkwsssadm5vns5d0m3"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'compatibility
+            (lambda _
+              ;; This file uses Python 2 statements
+              (delete-file "GPy/testing/mpi_test__.py")
+              (substitute* "setup.py"
+                (("scipy>=1.3.0,<1.12.0")
+                 "scipy>=1.3.0,<=1.13.0"))
+              ;; Use numpy.exp because scipy.ext no longer exists
+              (substitute* "GPy/kern/src/sde_standard_periodic.py"
+                (("sp\\.exp") "np.exp"))
+              (substitute* "GPy/kern/src/sde_stationary.py"
+                (("sp\\.poly1d") "np.poly1d")
+                (("sp\\.roots") "np.roots")))))))
+    (native-inputs
+     (list python-cython
+           python-matplotlib
+           python-pods
+           python-pytest
+           python-setuptools
+           python-wheel))
+    (propagated-inputs
+     (list python-numpy
+           python-paramz
+           python-scipy
+           python-six))
+    (home-page "https://sheffieldml.github.io/GPy/";)
+    (synopsis "The Gaussian Process Toolbox")
+    (description
+     "@command{GPy} is a Gaussian Process (GP) framework written in
+Python, from the Sheffield machine learning group.  GPy implements a range of
+machine learning algorithms based on GPs.")
+    (license license:bsd-3)))
+
 (define-public python-libsvm
   (package (inherit libsvm)
     (name "python-libsvm")
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 265eee6233..58bf22effb 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -3751,54 +3751,6 @@ for parameterized model creation and handling.  Its 
features include:
 @end itemize")
     (license license:bsd-3)))
 
-(define-public python-gpy
-  (package
-    (name "python-gpy")
-    (version "1.13.2")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "GPy" version))
-       (sha256
-        (base32 "083rl8nr4nmmr1pzn0g8gsc4wi9dnhj3jjhkwsssadm5vns5d0m3"))))
-    (build-system pyproject-build-system)
-    (arguments
-     (list
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'unpack 'compatibility
-            (lambda _
-              ;; This file uses Python 2 statements
-              (delete-file "GPy/testing/mpi_test__.py")
-              (substitute* "setup.py"
-                (("scipy>=1.3.0,<1.12.0")
-                 "scipy>=1.3.0,<=1.13.0"))
-              ;; Use numpy.exp because scipy.ext no longer exists
-              (substitute* "GPy/kern/src/sde_standard_periodic.py"
-                (("sp\\.exp") "np.exp"))
-              (substitute* "GPy/kern/src/sde_stationary.py"
-                (("sp\\.poly1d") "np.poly1d")
-                (("sp\\.roots") "np.roots")))))))
-    (native-inputs
-     (list python-cython
-           python-matplotlib
-           python-pods
-           python-pytest
-           python-setuptools
-           python-wheel))
-    (propagated-inputs
-     (list python-numpy
-           python-paramz
-           python-scipy
-           python-six))
-    (home-page "https://sheffieldml.github.io/GPy/";)
-    (synopsis "The Gaussian Process Toolbox")
-    (description
-     "@command{GPy} is a Gaussian Process (GP) framework written in
-Python, from the Sheffield machine learning group.  GPy implements a range of
-machine learning algorithms based on GPs.")
-    (license license:bsd-3)))
-
 (define-public python-pods
   (package
     (name "python-pods")

Reply via email to