summaryrefslogtreecommitdiff
path: root/dev-python/Babel
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/Babel')
-rw-r--r--dev-python/Babel/Babel-2.10.2.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-python/Babel/Babel-2.10.2.ebuild b/dev-python/Babel/Babel-2.10.2.ebuild
index b97351c0ee33..70abb999f927 100644
--- a/dev-python/Babel/Babel-2.10.2.ebuild
+++ b/dev-python/Babel/Babel-2.10.2.ebuild
@@ -32,8 +32,10 @@ RDEPEND="
dev-python/backports-zoneinfo[${PYTHON_USEDEP}]
' 3.8)
"
+# RDEPEND in BDEPEND for import_cldr.py usage, bug #852158
BDEPEND="
app-arch/unzip
+ ${RDEPEND}
test? (
dev-python/freezegun[${PYTHON_USEDEP}]
)
@@ -42,6 +44,14 @@ BDEPEND="
distutils_enable_sphinx docs
distutils_enable_tests pytest
+python_check_deps() {
+ if [[ ${EPYTHON} == python3.8 ]] ; then
+ python_has_version "dev-python/backports-zoneinfo[${PYTHON_USEDEP}]" || return 1
+ fi
+
+ python_has_version "dev-python/pytz[${PYTHON_USEDEP}]"
+}
+
python_configure_all() {
rm babel/locale-data/*.dat || die
rm babel/global.dat || die