[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/59: gnu: python-matplotlib: Update to 3.8.2.
From: |
guix-commits |
Subject: |
20/59: gnu: python-matplotlib: Update to 3.8.2. |
Date: |
Tue, 16 Jan 2024 07:16:23 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 82b7c3077f3f7eb705432bfa1e7e03f863ee2872
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Jan 8 20:18:02 2024 +0100
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
---
gnu/packages/python-xyz.scm | 55 +++++++++++++++++++--------------------------
1 file changed, 23 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ee48db20a7..980fe08400 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8414,16 +8414,25 @@ comparison.
(define-public python-matplotlib
(package
(name "python-matplotlib")
- (version "3.5.2")
+ (version "3.8.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "matplotlib" version))
(sha256
- (base32 "18h78s5ld1i6mz00w258hy29909nfr3ddq6ry9kq18agw468bks8"))))
- (build-system python-build-system)
+ (base32 "18amhxyxa6yzy1nwky4ggdgvvxnbl3qz2lki05vfx0dqf6w7ia81"))))
+ (build-system pyproject-build-system)
(arguments
(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
#~(modify-phases %standard-phases
(add-before 'build 'pretend-version
@@ -8487,49 +8496,30 @@ backend=Agg
basedirlist = ~a,~a
[packages]
-tests = True~%" (assoc-ref inputs "tcl") (assoc-ref inputs "tk"))))))
+tests = True~%" #$(this-package-input "tcl") #$(this-package-input "tk"))))))
(replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
(when tests?
;; Step out of the source directory to avoid interference.
(with-directory-excursion "/tmp"
;; Run the installed tests, which is what we want since not
;; everything gets built in the source directory.
- (invoke "pytest"
- "-n" (number->string (parallel-job-count))
- "-m" "not network" "--pyargs" "matplotlib"
- "-k"
- (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
- (list gobject-introspection
- python-cairocffi
- python-certifi
+ (apply invoke "pytest"
+ "-n" (number->string (parallel-job-count))
+ "--pyargs" "matplotlib"
+ test-flags))))))))
+ (propagated-inputs
+ (list python-contourpy
python-cycler
python-dateutil
python-fonttools-minimal
+ python-importlib-resources
python-kiwisolver
python-numpy
python-packaging
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-pytz
- python-six
- `(,python "tk")
- python-wxpython))
+ `(,python "tk")))
(inputs
(list cairo
freetype
@@ -8540,6 +8530,7 @@ tests = True~%" (assoc-ref inputs "tcl") (assoc-ref
inputs "tk"))))))
tk))
(native-inputs
(list pkg-config
+ pybind11
python-pytest
python-pytest-timeout
python-pytest-xdist
- 47/59: gnu: python-pandas: Update to 1.5.3., (continued)
- 47/59: gnu: python-pandas: Update to 1.5.3., guix-commits, 2024/01/16
- 56/59: gnu: python-astroml: Make compatible with recent Matplot and Scipy., guix-commits, 2024/01/16
- 57/59: gnu: python-clingraph: Update to 1.1.2., guix-commits, 2024/01/16
- 59/59: gnu: gourmet: Add missing input., guix-commits, 2024/01/16
- 08/59: gnu: python-tifffile: Update to 2023.12.9., guix-commits, 2024/01/16
- 09/59: gnu: python-lazy-loader: Update to 0.3., guix-commits, 2024/01/16
- 10/59: gnu: python-imageio: Update to 2.33.1., guix-commits, 2024/01/16
- 13/59: gnu: python-matplotx: Disable test_png test., guix-commits, 2024/01/16
- 17/59: gnu: Add python-cppy., guix-commits, 2024/01/16
- 26/59: gnu: python-captum: Update to 0.7.0., guix-commits, 2024/01/16
- 20/59: gnu: python-matplotlib: Update to 3.8.2.,
guix-commits <=
- 24/59: gnu: python-cleanlab: Disable test_aux_inputs, enable other tests., guix-commits, 2024/01/16
- 21/59: gnu: python-seaborn: Update to 0.13.1., guix-commits, 2024/01/16
- 30/59: gnu: python-reportlab: Update to 4.0.8., guix-commits, 2024/01/16
- 34/59: gnu: python-pint: Update to 0.23., guix-commits, 2024/01/16
- 35/59: gnu: python-demuxem: Disable tests., guix-commits, 2024/01/16
- 33/59: gnu: python-cooler: Update to 0.9.1., guix-commits, 2024/01/16
- 36/59: gnu: python-cartopy: Update to 0.22.0., guix-commits, 2024/01/16
- 45/59: gnu: datasette: Update to 1.0a7., guix-commits, 2024/01/16
- 48/59: gnu: python-scikit-bio: Update to 0.5.9., guix-commits, 2024/01/16
- 49/59: gnu: python-adjusttext: Disable tests., guix-commits, 2024/01/16