Diff wxpython-4.2.3-r2 with a wxpython-4.2.4

/usr/portage/dev-python/wxpython/wxpython-4.2.4.ebuild 2026-04-18 12:17:38.925620243 +0300
1
# Copyright 1999-2025 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5
DISTUTILS_EXT=1
6 6
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{11..13} )
7
PYTHON_COMPAT=( python3_{11..14} )
8 8
PYPI_NO_NORMALIZE=1
9 9
PYPI_PN="wxPython"
10 10
WX_GTK_VER="3.2-gtk3"
......
17 17
	https://github.com/wxWidgets/Phoenix/
18 18
	https://pypi.org/project/wxPython/
19 19
"
20
# >=4.2.4 has all lowercase sdist
21
SRC_URI="$(pypi_sdist_url ${PN} ${PV})"
20 22

  
21 23
LICENSE="wxWinLL-3"
22 24
SLOT="4.0"
23
KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv ~sparc x86"
25
KEYWORDS="~alpha amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
24 26
IUSE="test webkit"
25 27
RESTRICT="!test? ( test )"
26 28

  
......
56 58
	"${FILESDIR}/${PN}-4.2.0-flags.patch"
57 59
	"${FILESDIR}/${PN}-4.2.1-x86-time.patch"
58 60
	"${FILESDIR}/${PN}-4.2.2-setuppy.patch"
61
	"${FILESDIR}/${PN}-4.2.4-setuptools.patch"
59 62
)
60 63

  
61 64
python_prepare_all() {
......
72 75
	)
73 76

  
74 77
	distutils-r1_python_prepare_all
75

  
76
	# sigh
77
	sed -i -e '/from buildtools/i\
78
sys.path.insert(0, ".")' setup.py || die
79

  
80
	# sigh, used only when fetching things implicitly which we definitely
81
	# don't want; https://bugs.gentoo.org/955593
82
	sed -i -e '/requests/d' build.py || die
83 78
}
84 79

  
85 80
src_configure() {
......
88 83

  
89 84
python_compile() {
90 85
	# Patch will fail if copy of refreshed sip file is not restored
91
	# if using multiple Python implementations
92
	DOXYGEN="$(type -P doxygen)" ${PYTHON} build.py dox etg sip --nodoc || die
86
	# if using multiple Python implementations.
87
	# TODO: Could we do this in python_compile_all() instead? It would
88
	# save a lot of time.
89
	DOXYGEN="$(type -P doxygen)" ${PYTHON} build.py dox touch etg sip --nodoc || die
90

  
93 91
	cp "${S}/sip/cpp/sip_corewxAppTraits.cpp" "${S}" || die
94 92

  
95
	eapply "${FILESDIR}/${PN}-4.2.2-no-stacktrace.patch" || die
93
	eapply "${FILESDIR}/${PN}-4.2.2-no-stacktrace.patch"
96 94

  
97 95
	distutils-r1_python_compile
98 96

  
......
112 110
		unittests/test_mousemanager.py::mousemanager_Tests::test_mousemanager1
113 111
		unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardChar
114 112
		unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardKeyDownUp
113
		unittests/test_uiaction.py::uiaction_KeyboardTests::test_uiactionKeyboardText
115 114
		unittests/test_uiaction.py::uiaction_MouseTests
116 115

  
117 116
		# assertion (TODO)
......
120 119

  
121 120
		# seems to rely on state from a previous test (sigh)
122 121
		unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerRestore
122
		unittests/test_lib_agw_persist_persistencemanager.py::lib_agw_persist_persistencemanager_Tests::test_persistencemanagerPersistValue
123 123

  
124 124
		# requires Spanish localization
125 125
		unittests/test_intl.py::intl_Tests::test_intlGetString
Thank you!