dev-python/pyvistaqt - 0.13.1 (stuff)

Search

Install

Install this version:

emerge -a =dev-python/pyvistaqt-0.13.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/pyvistaqt-0.13.1

Or alternatively:

emerge --autounmask-write -a =dev-python/pyvistaqt-0.13.1

Package Information

Description:
Qt-based plotting GUI for PyVista (background plotter, scientific viewers)
Homepage:
https://github.com/pyvista/pyvistaqt https://pypi.org/project/pyvistaqt/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.13.1 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_SINGLE_IMPL=1

inherit distutils-r1 pypi virtualx

DESCRIPTION="Qt-based plotting GUI for PyVista (background plotter, scientific viewers)"
HOMEPAGE="
	https://github.com/pyvista/pyvistaqt
	https://pypi.org/project/pyvistaqt/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

RDEPEND="
	>=dev-python/pyvista-0.43.7[${PYTHON_SINGLE_USEDEP}]
	$(python_gen_cond_dep '
		>=dev-python/qtpy-1.9.0[${PYTHON_USEDEP},opengl,widgets]
	')
"
BDEPEND="
	$(python_gen_cond_dep '
		dev-python/setuptools-scm[${PYTHON_USEDEP}]
	')
"

export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}

PATCHES=( "${FILESDIR}/${P}-no-refleak.patch" )

EPYTEST_PLUGINS=( pytest-cov pytest-qt )
EPYTEST_DESELECT=(
	# VTK exits without a DRM renderer, even under Xvfb and software Mesa.
	tests/test_plotting.py::test_depth_peeling
)

distutils_enable_tests pytest

src_test() {
	virtx distutils-r1_src_test
}

python_test() {
	# Match pytest-qt to QtPy's binding to avoid mixed-binding aborts.
	local -x QT_API
	QT_API=$("${EPYTHON}" -c 'import qtpy; print(qtpy.API)') || die
	local -x PYTEST_QT_API=${QT_API}

	epytest
}

Inherited Eclasses

Dependencies

RDEPEND

	>=dev-python/pyvista-0.43.7[${PYTHON_SINGLE_USEDEP}]
	$(python_gen_cond_dep '
		>=dev-python/qtpy-1.9.0[${PYTHON_USEDEP},opengl,widgets]
	')

BDEPEND

	$(python_gen_cond_dep '
		dev-python/setuptools-scm[${PYTHON_USEDEP}]
	')