From 5bdfb214d5b0ceca6f0ed4aedf9f781b085751c9 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 5 Nov 2023 05:49:07 +0100 Subject: dev-python/wrapt: Fix test failures on pypy3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/910536 Signed-off-by: Michał Górny --- dev-python/wrapt/wrapt-1.15.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dev-python/wrapt') diff --git a/dev-python/wrapt/wrapt-1.15.0.ebuild b/dev-python/wrapt/wrapt-1.15.0.ebuild index 9e33fe5a5171..bd4f60798893 100644 --- a/dev-python/wrapt/wrapt-1.15.0.ebuild +++ b/dev-python/wrapt/wrapt-1.15.0.ebuild @@ -26,6 +26,13 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx-rtd-theme +src_prepare() { + # pypy3.9+ change, upstream commented this out + # in 59680c8bb998defa3be522fef6e49fd276bebe58 + sed -i -e 's:if is_pypy:if False:' tests/test_object_proxy.py || die + distutils-r1_src_prepare +} + python_compile() { local -x WRAPT_INSTALL_EXTENSIONS=true distutils-r1_python_compile -- cgit v1.2.3-65-gdbad