New comment by olafmersmann on void-packages repository https://github.com/void-linux/void-packages/pull/27082#issuecomment-744477200 Comment: > Try adding `python3-pytest` to `checkdepends` for it. I tried that in `master`: ``` ❯ git diff diff --git a/srcpkgs/python3-matplotlib/template b/srcpkgs/python3-matplotlib/template index 3940b55d0f..c6acaf5861 100644 --- a/srcpkgs/python3-matplotlib/template +++ b/srcpkgs/python3-matplotlib/template @@ -9,6 +9,7 @@ hostmakedepends="pkg-config python3-setuptools python3-certifi python3-numpy" makedepends="python3-devel freetype-devel libpng-devel libqhull-devel" depends="python3-certifi python3-cycler python3-kiwisolver python3-numpy python3-Pillow python3-parsing python3-dateutil" +checkdepends="$depends python3-pytest>=3.6" short_desc="Python3 2D/3D plotting library" maintainer="Alessio Sergi " license="custom:matplotlib, BSD-3-Clause, MIT" ``` but still get ``` ❯ ./xbps-src check -f python3-matplotlib *snip* lib/matplotlib/__init__.py:174: in _check_versions() lib/matplotlib/__init__.py:159: in _check_versions from . import ft2font E ImportError: cannot import name 'ft2font' from partially initialized module 'matplotlib' (most likely due to a circular import) (/builddir /matplotlib-3.3.3/lib/matplotlib/__init__.py) =========================== short test summary info ============================ ERROR - ImportError: cannot import name 'ft2font' from partially initialized... !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! =============================== 1 error in 0.30s =============================== => ERROR: python3-matplotlib-3.3.3_1: do_check: 'python3 -m pytest ${make_check_args} ${make_check_target}' exited with 2 => ERROR: in do_check() at common/build-style/python3-module.sh:28 ``` I'll investigate further. If I find a solution, it would go into a separate merge request, right?