mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: python-gpy: Update to 1.13.1.
* gnu/packages/python-science.scm (python-gpy): Update to 1.13.1. [source]: Remove snippet. [build-system]: Use pyproject-build-system. [arguments]: Remove phase 'remove-plotting-tests; add phase 'compatibility. [native-inputs]: Remove python-nose and python-climin; add python-pytest, python-matplotlib, and python-pods. Change-Id: I1ed95e3ad2e8444979fd2cf272d7f3104b1bf2ec
This commit is contained in:
parent
a4039b6994
commit
1b44a23503
1 changed files with 23 additions and 15 deletions
|
@ -2827,27 +2827,35 @@ (define-public python-paramz
|
|||
(define-public python-gpy
|
||||
(package
|
||||
(name "python-gpy")
|
||||
(version "1.10.0")
|
||||
(version "1.13.1")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "GPy" version))
|
||||
(sha256
|
||||
(base32
|
||||
"1yx65ajrmqp02ykclhlb0n8s3bx5r0xj075swwwigiqaippr7dx2"))
|
||||
(snippet
|
||||
#~(begin (use-modules (guix build utils))
|
||||
(substitute* "GPy/models/state_space_main.py"
|
||||
(("collections\\.Iterable") "collections.abc.Iterable"))))))
|
||||
(build-system python-build-system)
|
||||
"05d1ry4jpp0srsrmp3qd6s0p2bjc4c0z99450pzdr79vagbfvlk4"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:phases (modify-phases %standard-phases
|
||||
(add-before 'check 'remove-plotting-tests
|
||||
;; These fail
|
||||
(lambda _
|
||||
(delete-file "GPy/testing/plotting_tests.py"))))))
|
||||
(native-inputs (list python-cython python-nose python-climin))
|
||||
(propagated-inputs (list python-numpy python-paramz python-scipy
|
||||
python-six))
|
||||
(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))
|
||||
(propagated-inputs
|
||||
(list python-numpy python-paramz python-scipy python-six))
|
||||
(home-page "https://sheffieldml.github.io/GPy/")
|
||||
(synopsis "The Gaussian Process Toolbox")
|
||||
(description
|
||||
|
|
Loading…
Reference in a new issue