commit:     48a056021a6bc098adcef7dbee6c208b07ae15f7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 12 15:42:02 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Dec 12 16:27:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48a05602

dev-python/Babel: Bump to 2.14.0

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

 dev-python/Babel/Babel-2.14.0.ebuild | 56 ++++++++++++++++++++++++++++++++++++
 dev-python/Babel/Manifest            |  2 ++
 2 files changed, 58 insertions(+)

diff --git a/dev-python/Babel/Babel-2.14.0.ebuild 
b/dev-python/Babel/Babel-2.14.0.ebuild
new file mode 100644
index 000000000000..f0ba2651dbe6
--- /dev/null
+++ b/dev-python/Babel/Babel-2.14.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 pypi
+
+# see scripts/download_import_cldr.py
+CLDR_PV=43.0
+DESCRIPTION="Collection of tools for internationalizing Python applications"
+HOMEPAGE="
+       https://babel.pocoo.org/
+       https://pypi.org/project/Babel/
+       https://github.com/python-babel/babel/
+"
+SRC_URI+="
+       https://unicode.org/Public/cldr/${CLDR_PV%.*}/cldr-common-${CLDR_PV}.zip
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-macos"
+
+# RDEPEND in BDEPEND for import_cldr.py usage, bug #852158
+BDEPEND="
+       app-arch/unzip
+       ${RDEPEND}
+       test? (
+               dev-python/freezegun[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+src_prepare() {
+       rm babel/locale-data/*.dat || die
+       rm babel/global.dat || die
+       distutils-r1_src_prepare
+}
+
+python_configure() {
+       if [[ ! -f babel/global.dat ]]; then
+               "${EPYTHON}" scripts/import_cldr.py "${WORKDIR}"/common || die
+       fi
+}
+
+python_test() {
+       local -x TZ=UTC
+       epytest
+}

diff --git a/dev-python/Babel/Manifest b/dev-python/Babel/Manifest
index 60d8dc53c94a..c381b661f6ac 100644
--- a/dev-python/Babel/Manifest
+++ b/dev-python/Babel/Manifest
@@ -1,2 +1,4 @@
 DIST Babel-2.13.1.tar.gz 9909844 BLAKE2B 
f4e0cb6d19c2ecd24a8e67e7d77531248cb5a8d100a5da2a9fe147aef3c15339728c82d4fe9095563c0a0b83dede7c5e27f29281bc3bf0cac5deff7cce409335
 SHA512 
c27c76456094927bd43ae46cd3e08fcc729dd810a6092da6c86e863523c10746bb3759e7fc9f5396504ab914743ef013904b63b3aa63338602f23aaf83d42cba
+DIST Babel-2.14.0.tar.gz 10795622 BLAKE2B 
7beb79d34e5fc44a7520b7ca8541dbe41676b466c418a4fcf994fc556ca86d9cbc9ddeecad886b49a61ea4f62502413472a96df0fd65606f447e423c7ece4723
 SHA512 
cfcd93bc5e57e3d23b8fb67f77fdeeb08183cc5ef9a6e044085a090cec3d722cf658e740c639f5a834df11a4cff0dacafdbba435184d77a78d56fc0bb6b62fd2
 DIST cldr-common-42.0.zip 30178050 BLAKE2B 
076e3eca12534feff8e0e54bdc1fa38fc0db0f78cac8b4e35b343763a8ac6787745aa36be165684f4d6dda423409c4431a8e4941c53ae7d340ead0b35edbca30
 SHA512 
315448fe6a9ac2d5a6a7fd1a27b38c5db30fed053654a803d50e3a8d06aa08ad153e8e57089fa094c561f41a54f37eecda0701b47a1813879902be71945aa38a
+DIST cldr-common-43.0.zip 31934452 BLAKE2B 
8390db2fb58ede0f55ebe369e5598c6a47b6ed01c95162d85365a699ceeb15d4d912a1ea26062c8f37a467c58fdaca27e99a9a133fec4afe15bf6ac6ba29b4f6
 SHA512 
930c64208d6f680d115bfa74a69445fb614910bb54233227b0b9ae85ddbce4db19e4ec863bf04ae9d4a11b2306aa7394e553384d7537487de8011f0e34877cef

Reply via email to