gnu: python-scipy: Update to 1.7.3.

* gnu/packages/python-science.scm (python-scipy): Update to 1.7.3.
[native-inputs]: Add python-pydata-sphinx-theme, python-sphinx-panels.
[arguments]: Add phase to build without python-pythran. Remove
trailing #t from phases.
* gnu/packages/sphinx.scm (python-pydata-sphinx-theme)[native-inputs]:
Remove python-plotly.
This commit is contained in:
Efraim Flashner 2021-12-22 18:27:20 +02:00
parent 4614387807
commit e8c1562599
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
2 changed files with 11 additions and 11 deletions

View file

@ -66,13 +66,13 @@ (define-module (gnu packages python-science)
(define-public python-scipy (define-public python-scipy
(package (package
(name "python-scipy") (name "python-scipy")
(version "1.6.0") (version "1.7.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "scipy" version)) (uri (pypi-uri "scipy" version))
(sha256 (sha256
(base32 "0rh5b1rwdcvvagld8vpxnpaibszy1skpx39a0fwzd5gx5pwcjvfb")))) (base32 "1gxsnw6viz2j3sm8ak2a8l7fcn4b2zm3kzfm8w57xxyyrzx7an5b"))))
(build-system python-build-system) (build-system python-build-system)
(propagated-inputs (propagated-inputs
(list python-numpy python-matplotlib python-pyparsing)) (list python-numpy python-matplotlib python-pyparsing))
@ -80,8 +80,10 @@ (define-public python-scipy
(list openblas pybind11)) (list openblas pybind11))
(native-inputs (native-inputs
(list python-cython (list python-cython
python-pydata-sphinx-theme
python-pytest python-pytest
python-sphinx python-sphinx
python-sphinx-panels
python-numpydoc python-numpydoc
gfortran gfortran
perl perl
@ -90,11 +92,13 @@ (define-public python-scipy
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'disable-pythran
(lambda _
(setenv "SCIPY_USE_PYTHRAN" "0")))
(add-before 'build 'change-home-dir (add-before 'build 'change-home-dir
(lambda _ (lambda _
;; Change from /homeless-shelter to /tmp for write permission. ;; Change from /homeless-shelter to /tmp for write permission.
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")))
#t))
(add-after 'unpack 'disable-broken-tests (add-after 'unpack 'disable-broken-tests
(lambda _ (lambda _
(substitute* "scipy/sparse/linalg/dsolve/tests/test_linsolve.py" (substitute* "scipy/sparse/linalg/dsolve/tests/test_linsolve.py"
@ -105,8 +109,7 @@ (define-public python-scipy
(substitute* "scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py" (substitute* "scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py"
(("^def test_parallel_threads\\(\\):" m) (("^def test_parallel_threads\\(\\):" m)
(string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n" (string-append "@pytest.mark.skip(reason=\"Disabled by Guix\")\n"
m))) m)))))
#t))
(add-before 'build 'configure-openblas (add-before 'build 'configure-openblas
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(call-with-output-file "site.cfg" (call-with-output-file "site.cfg"
@ -124,8 +127,7 @@ (define-public python-scipy
" "
(assoc-ref inputs "openblas") (assoc-ref inputs "openblas")
(assoc-ref inputs "openblas") (assoc-ref inputs "openblas")
(assoc-ref inputs "openblas")))) (assoc-ref inputs "openblas"))))))
#t))
(add-after 'install 'install-doc (add-after 'install 'install-doc
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((data (string-append (assoc-ref outputs "doc") "/share")) (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
@ -151,8 +153,7 @@ (define-public python-scipy
(let* ((dir (dirname file)) (let* ((dir (dirname file))
(tgt-dir (string-append html "/" dir))) (tgt-dir (string-append html "/" dir)))
(install-file file html))) (install-file file html)))
(find-files "." ".*"))))) (find-files ".")))))))
#t))
;; Tests can only be run after the library has been installed and not ;; Tests can only be run after the library has been installed and not
;; within the source directory. ;; within the source directory.
(delete 'check) (delete 'check)

View file

@ -956,7 +956,6 @@ (define-public python-pydata-sphinx-theme
python-numpy python-numpy
python-numpydoc python-numpydoc
python-pandas python-pandas
python-plotly
python-pytest python-pytest
python-pytest-regressions python-pytest-regressions
python-recommonmark python-recommonmark