commit:     6c29c923224e2c1306c174fbb40a4559103786fb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 25 05:23:43 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Oct 25 05:24:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c29c923

dev-python/pytz_deprecation_shim: Strip stray dep on tzdata

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 ...m-0.1.0_p0.ebuild => pytz_deprecation_shim-0.1.0_p0-r1.ebuild} | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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 cf95034b0cf..351a6c18c9a 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
+}

Reply via email to