# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{12..15} ) PYPI_PN="wxPython" # The 4.3.2 sdist has no PyPI provenance attestation, so PYPI_VERIFY_REPO # cannot be set. verified 2026-10-14 WX_GTK_VER="3.3-gtk3" inherit distutils-r1 multilib multiprocessing virtualx wxwidgets pypi DESCRIPTION="A blending of the wxWindows C++ class library with Python" HOMEPAGE=" https://www.wxpython.org/ https://github.com/wxWidgets/Phoenix/ https://pypi.org/project/wxPython/ " LICENSE="wxWinLL-3" SLOT="4.0" KEYWORDS="~amd64 ~arm64" IUSE="test webkit" RESTRICT="!test? ( test )" # Only WebKit can be disabled; require wxGTK's other features. # The bindings are generated from the bundled wxWidgets 3.3.4 interface; match # that release. verified 2026-10-14 DEPEND=" =x11-libs/wxGTK-3.3.4*:${WX_GTK_VER}=[gstreamer,libnotify,opengl,sdl,tiff,webkit?,X] media-libs/libpng:= media-libs/tiff:= media-libs/libjpeg-turbo:= " RDEPEND=" ${DEPEND} " # Upstream requires sip >=6.10,<7; the floor is the 6.17.1 its released # bindings were generated with. verified 2026-11-12 BDEPEND=" app-text/doxygen >=dev-python/cython-3.0.10[${PYTHON_USEDEP}] >=dev-python/requests-2.26[${PYTHON_USEDEP}] >=dev-python/setuptools-70.1[${PYTHON_USEDEP}] >=dev-python/sip-6.17.1[${PYTHON_USEDEP}]