From ebc876a3e3e7dae2b97c87f0a730eb6888eddee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 11 Jul 2024 20:29:25 +0200 Subject: [PATCH] dev-python/seaborn: Fix tests with numpy-2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/seaborn/seaborn-0.13.2.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-python/seaborn/seaborn-0.13.2.ebuild b/dev-python/seaborn/seaborn-0.13.2.ebuild index b7d3e8825fc57..d873ae99d6384 100644 --- a/dev-python/seaborn/seaborn-0.13.2.ebuild +++ b/dev-python/seaborn/seaborn-0.13.2.ebuild @@ -30,6 +30,13 @@ RDEPEND=" EPYTEST_XDIST=1 distutils_enable_tests pytest +src_prepare() { + distutils-r1_src_prepare + + # https://github.com/mwaskom/seaborn/pull/3685 + sed -i -e '/VisibleDeprecationWarning/d' tests/test_distributions.py || die +} + src_test() { cat > matplotlibrc <<- EOF || die backend : Agg