gnu: python-matplotlib: Update to 3.1.2.

* gnu/packages/python-xyz.scm (python-matplotlib): Update to 3.1.2.
[arguments]: Disable test_backend_webagg and test_constrainedlayout; skip
other tests tagged with "webagg".
This commit is contained in:
Ricardo Wurmus 2019-11-27 08:21:12 +01:00
parent f9bd82e7a6
commit 9e7cb2f1e1
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3996,14 +3996,14 @@ (define-public python2-colorspacious
(define-public python-matplotlib
(package
(name "python-matplotlib")
(version "3.1.1")
(version "3.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "matplotlib" version))
(sha256
(base32
"14qc109dibp32xfd9lah54djc0rc76fhbsj9cwyb328lzqmd5sqz"))))
"1nmshfqh7wyg15i16hx1yiylcvzkws29ivn66n3i0wyqwcpjr3lf"))))
(build-system python-build-system)
(propagated-inputs ; the following packages are all needed at run time
`(("python-cycler" ,python-cycler)
@ -4068,8 +4068,14 @@ (define-public python-matplotlib
(for-each delete-file
;; test_normal_axes, test_get_tightbbox_polar
'("lib/matplotlib/tests/test_axes.py"
;; We don't use the webagg backend and this test forces it.
"lib/matplotlib/tests/test_backend_webagg.py"
;; test_outward_ticks
"lib/matplotlib/tests/test_tightlayout.py"
;; test_hidden_axes fails with minor extent
;; differences, possibly due to the use of a
;; different version of FreeType.
"lib/matplotlib/tests/test_constrainedlayout.py"
;; Fontconfig returns no fonts.
"lib/matplotlib/tests/test_font_manager.py"))
#t))
@ -4087,7 +4093,7 @@ (define-public python-matplotlib
(lambda* (#:key outputs inputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(invoke "python" "tests.py" "-v"
"-m" "not network")))
"-m" "not network and not webagg")))
(add-before 'build 'configure-environment
(lambda* (#:key outputs inputs #:allow-other-keys)
(let ((cairo (assoc-ref inputs "cairo")))