From 6c29c923224e2c1306c174fbb40a4559103786fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 25 Oct 2021 07:23:43 +0200 Subject: [PATCH] dev-python/pytz_deprecation_shim: Strip stray dep on tzdata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- ...p0.ebuild => pytz_deprecation_shim-0.1.0_p0-r1.ebuild} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) rename dev-python/pytz_deprecation_shim/{pytz_deprecation_shim-0.1.0_p0.ebuild => pytz_deprecation_shim-0.1.0_p0-r1.ebuild} (85%) diff --git a/dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0.ebuild b/dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0-r1.ebuild similarity index 85% rename from dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0.ebuild rename to dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0-r1.ebuild index cf95034b0cf2e..351a6c18c9a23 100644 --- a/dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0.ebuild +++ b/dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0-r1.ebuild @@ -19,10 +19,10 @@ SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" RDEPEND=" - dev-python/pytzdata[${PYTHON_USEDEP}] $(python_gen_cond_dep ' dev-python/backports-zoneinfo[${PYTHON_USEDEP}] ' python3_8 pypy3) + sys-libs/timezone-data " BDEPEND=" test? ( @@ -35,3 +35,9 @@ BDEPEND=" distutils_enable_tests pytest distutils_enable_sphinx docs \ dev-python/sphinx_rtd_theme + +src_prepare() { + # apparently used only as a fallback + sed -i -e '/tzdata/d' setup.cfg || die + distutils-r1_src_prepare +}