summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-08-06 12:41:13 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-08-06 13:29:30 +0100
commit3078221906dc44bfe90d464cd2241f8fcbea53cd (patch)
tree72a1a0f43dd4e556988b701d4c0ecbdb08f7cf7d /gnu
parente77de6fc45fe8db8eca377261263ad98f7f96f4f (diff)
gnu: python-gpy: Update to 1.14.1.
* gnu/packages/machine-learning.scm (python-gpy): Update to 1.14.1. [source]: Switch to git-fetch. [arguments] <#:test-flags>: Run all tests. [phases]{compatibility}: Simplify, remove all fixes applied upstream. [propagated-inputs]: Remove python-numpy-1; add python-numpy, python-matplotlib, and python-plotly. [native-inputs]: Remove python-matplotlib and python-wheel. Relates-to: guix/guix#6610
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/machine-learning.scm49
1 files changed, 17 insertions, 32 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index b323fa27db0..0ac1d18932c 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -740,59 +740,44 @@ classification.")
740(define-public python-gpy 740(define-public python-gpy
741 (package 741 (package
742 (name "python-gpy") 742 (name "python-gpy")
743 (version "1.13.2") 743 (version "1.14.1")
744 (source 744 (source
745 (origin 745 (origin
746 (method url-fetch) 746 (method git-fetch)
747 (uri (pypi-uri "GPy" version)) 747 (uri (git-reference
748 (url "https://github.com/SheffieldML/GPy")
749 (commit (string-append "v" version))))
750 (file-name (git-file-name name version))
748 (sha256 751 (sha256
749 (base32 "083rl8nr4nmmr1pzn0g8gsc4wi9dnhj3jjhkwsssadm5vns5d0m3")))) 752 (base32 "16n03rljpqrhlfapcs7nqca1yrw69484fjp84skg5628jp3fwxfr"))))
750 (build-system pyproject-build-system) 753 (build-system pyproject-build-system)
751 (arguments 754 (arguments
752 (list 755 (list
753 ;; tests: 254 passed, 15 skipped, 1142679 warnings
754 #:test-flags
755 ;; TODO: Review tests.
756 #~(list
757 ;; Failed: 'yield' keyword is allowed in fixtures, but not in tests
758 ;; (test_scale2_models)
759 "--ignore=GPy/testing/test_likelihood.py"
760 ;; Failed: 'yield' keyword is allowed in fixtures, but not in
761 ;; tests (test_figure)
762 "--ignore=GPy/testing/test_plotting.py")
763 #:phases 756 #:phases
764 #~(modify-phases %standard-phases 757 #~(modify-phases %standard-phases
765 (add-after 'unpack 'compatibility 758 (add-after 'unpack 'compatibility
766 (lambda _ 759 (lambda _
767 ;; This file uses Python 2 statements 760 ;; This file uses Python 2 statements
768 (delete-file "GPy/testing/mpi_test__.py") 761 (delete-file "GPy/testing/mpi_test__.py"))))))
769 (substitute* "setup.py"
770 (("scipy>=1.3.0,<=1.12.0")
771 "scipy>=1.3.0"))
772 ;; Use numpy.exp because scipy.ext no longer exists
773 (substitute* "GPy/kern/src/sde_standard_periodic.py"
774 (("sp\\.exp") "np.exp"))
775 (substitute* "GPy/kern/src/sde_stationary.py"
776 (("sp\\.poly1d") "np.poly1d")
777 (("sp\\.roots") "np.roots")))))))
778 (native-inputs 762 (native-inputs
779 (list python-cython 763 (list python-cython
780 python-matplotlib
781 python-pods 764 python-pods
782 python-pytest 765 python-pytest
783 python-setuptools 766 python-setuptools))
784 python-wheel))
785 (propagated-inputs 767 (propagated-inputs
786 (list python-numpy-1 768 (list python-numpy
787 python-paramz 769 python-paramz
788 python-scipy 770 python-scipy
789 python-six)) 771 python-six ;hard dependency
772 ;; [optional]
773 python-matplotlib
774 python-plotly))
790 (home-page "https://sheffieldml.github.io/GPy/") 775 (home-page "https://sheffieldml.github.io/GPy/")
791 (synopsis "The Gaussian Process Toolbox") 776 (synopsis "The Gaussian Process Toolbox")
792 (description 777 (description
793 "@command{GPy} is a Gaussian Process (GP) framework written in 778 "@command{GPy} is a Gaussian Process (GP) framework written in Python,
794Python, from the Sheffield machine learning group. GPy implements a range of 779from the Sheffield machine learning group. GPy implements a range of machine
795machine learning algorithms based on GPs.") 780learning algorithms based on GPs.")
796 (license license:bsd-3))) 781 (license license:bsd-3)))
797 782
798(define-public python-libsvm 783(define-public python-libsvm