mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-matplotlib: Update to 3.8.2.
* gnu/packages/python-xyz.scm (python-matplotlib): Update to 3.8.2. [build-system]: Use pyproject-build-system. [arguments]: Enable more tests; simplify custom 'check phase. [propagated-inputs]: Remove gobject-introspection, python-cairocffi, python-certifi, python-pygobject, python-pytz, python-six, and python-wxpython; add python-contourpy and python-importlib-resources. [native-inputs]: Add pybind11. Change-Id: Ie34826882fdcc20fac3b09130bcd0f4ad4f76b07
This commit is contained in:
parent
c7646437a2
commit
82b7c3077f
1 changed files with 22 additions and 31 deletions
|
@ -8414,16 +8414,25 @@ comparison.
|
||||||
(define-public python-matplotlib
|
(define-public python-matplotlib
|
||||||
(package
|
(package
|
||||||
(name "python-matplotlib")
|
(name "python-matplotlib")
|
||||||
(version "3.5.2")
|
(version "3.8.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "matplotlib" version))
|
(uri (pypi-uri "matplotlib" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "18h78s5ld1i6mz00w258hy29909nfr3ddq6ry9kq18agw468bks8"))))
|
(base32 "18amhxyxa6yzy1nwky4ggdgvvxnbl3qz2lki05vfx0dqf6w7ia81"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
|
#:test-flags
|
||||||
|
'(list "-m" "not network"
|
||||||
|
"-k"
|
||||||
|
(string-append
|
||||||
|
;; This one fails with a small difference in the upper left.
|
||||||
|
"not test_figure_legend_outside"
|
||||||
|
;; The 'test_lazy_auto_backend_selection' fails
|
||||||
|
;; because it would require an X server; skip it.
|
||||||
|
" and not test_lazy_auto_backend_selection"))
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'build 'pretend-version
|
(add-before 'build 'pretend-version
|
||||||
|
@ -8487,49 +8496,30 @@ backend=Agg
|
||||||
basedirlist = ~a,~a
|
basedirlist = ~a,~a
|
||||||
|
|
||||||
[packages]
|
[packages]
|
||||||
tests = True~%" (assoc-ref inputs "tcl") (assoc-ref inputs "tk"))))))
|
tests = True~%" #$(this-package-input "tcl") #$(this-package-input "tk"))))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? test-flags #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
;; Step out of the source directory to avoid interference.
|
;; Step out of the source directory to avoid interference.
|
||||||
(with-directory-excursion "/tmp"
|
(with-directory-excursion "/tmp"
|
||||||
;; Run the installed tests, which is what we want since not
|
;; Run the installed tests, which is what we want since not
|
||||||
;; everything gets built in the source directory.
|
;; everything gets built in the source directory.
|
||||||
(invoke "pytest"
|
(apply invoke "pytest"
|
||||||
"-n" (number->string (parallel-job-count))
|
"-n" (number->string (parallel-job-count))
|
||||||
"-m" "not network" "--pyargs" "matplotlib"
|
"--pyargs" "matplotlib"
|
||||||
"-k"
|
test-flags))))))))
|
||||||
(string-append
|
|
||||||
;; The 'test_lazy_auto_backend_selection' fails
|
|
||||||
;; because it would require an X server; skip it.
|
|
||||||
"not test_lazy_auto_backend_selection"
|
|
||||||
;; test_getattr fails for the GTK backend because
|
|
||||||
;; of an unexpected warning from Python 3.10
|
|
||||||
;; (via the gi module):
|
|
||||||
;; https://gitlab.gnome.org/GNOME/pygobject/-/issues/494
|
|
||||||
" and not test_getattr")))))))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list gobject-introspection
|
(list python-contourpy
|
||||||
python-cairocffi
|
|
||||||
python-certifi
|
|
||||||
python-cycler
|
python-cycler
|
||||||
python-dateutil
|
python-dateutil
|
||||||
python-fonttools-minimal
|
python-fonttools-minimal
|
||||||
|
python-importlib-resources
|
||||||
python-kiwisolver
|
python-kiwisolver
|
||||||
python-numpy
|
python-numpy
|
||||||
python-packaging
|
python-packaging
|
||||||
python-pillow
|
python-pillow
|
||||||
;; ;; 'pycairo'. However, 'pygobject' makes use of a 'pycairo' 'context'
|
|
||||||
;; ;; From version 1.4.0 'matplotlib' makes use of 'cairocffi' instead of
|
|
||||||
;; ;; https://cairocffi.readthedocs.io/en/stable/cffi_api.html#converting-pycairo-wrappers-to-cairocffi
|
|
||||||
;; ;; object. For this reason we need to import both libraries.
|
|
||||||
;; python-pycairo
|
|
||||||
python-pygobject
|
|
||||||
python-pyparsing
|
python-pyparsing
|
||||||
python-pytz
|
`(,python "tk")))
|
||||||
python-six
|
|
||||||
`(,python "tk")
|
|
||||||
python-wxpython))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list cairo
|
(list cairo
|
||||||
freetype
|
freetype
|
||||||
|
@ -8540,6 +8530,7 @@ tests = True~%" (assoc-ref inputs "tcl") (assoc-ref inputs "tk"))))))
|
||||||
tk))
|
tk))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config
|
(list pkg-config
|
||||||
|
pybind11
|
||||||
python-pytest
|
python-pytest
|
||||||
python-pytest-timeout
|
python-pytest-timeout
|
||||||
python-pytest-xdist
|
python-pytest-xdist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue