diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-09 11:04:53 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-09 11:04:53 +0100 |
commit | 43297a4ed0a3760bbdd0b8c286b779f174ca5368 (patch) | |
tree | 15b92efd455b5d5eb0ef8a4af4f5f24572c4b46b /dev-python/Babel | |
parent | 14866757225815b9374acfc8453518951e0f910d (diff) |
gentoo auto-resync : 09:08:2024 - 11:04:52
Diffstat (limited to 'dev-python/Babel')
-rw-r--r-- | dev-python/Babel/Babel-2.16.0.ebuild | 56 | ||||
-rw-r--r-- | dev-python/Babel/Manifest | 5 | ||||
-rw-r--r-- | dev-python/Babel/metadata.xml | 2 |
3 files changed, 61 insertions, 2 deletions
diff --git a/dev-python/Babel/Babel-2.16.0.ebuild b/dev-python/Babel/Babel-2.16.0.ebuild new file mode 100644 index 000000000000..de9cf564abe0 --- /dev/null +++ b/dev-python/Babel/Babel-2.16.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_PN=${PN,} +PYTHON_COMPAT=( pypy3 python3_{10..13} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi + +# see scripts/download_import_cldr.py +CLDR_PV=45.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 cc4b7992a82b..c706128686c2 100644 --- a/dev-python/Babel/Manifest +++ b/dev-python/Babel/Manifest @@ -1,4 +1,7 @@ DIST babel-2.15.0.tar.gz 9390000 BLAKE2B 9cd99524dbb191b5b8835452118b57b23abc89123e358a29de2375263a0264a1ea4c71324632eff8711cab7dbb40a20e97acd8e0faa448872353852b064ca524 SHA512 8cff4dbbe84047f7e8b625772036d2a23b6f7dfc36aa15332e581d4331fdac1d0308341294741afc43f3180368a7cc7675f68f28bbf94a621c693a822d4a2028 +DIST babel-2.16.0.tar.gz 9348104 BLAKE2B e8b674312140dca805b3faf4531493d613b663d4a04aa42a86438d49dd547b598eec9e3c3ca79d715d1c1589f7d416073fcf7e58df468e7c449fa05c70e7b776 SHA512 c80b52cd38eb2fb34b1d19ef3b6c50c16b129a4137d42eba900e3f77e81a5ad03ca319aa37dbdfd3bb7cbe31adbfa6007413962c348912dc9dca09d55fa4438b DIST cldr-common-44.0.zip 31750682 BLAKE2B a6f708d6c5bd02efc1e0672250b181542fb0f91d48bbaabddfc3b6b9e21201e3c9e6d09222cbc929b4ae654d2a0804a90f77f384df93577af188a907ce20bd61 SHA512 f2cd8733948caf308d6e39eae21724da7f29f528f8969d456514e1e84ecd5f1e6936d0460414a968888bb1b597bc1ee723950ea47df5cba21a02bb14f96d18b6 +DIST cldr-common-45.0.zip 31812363 BLAKE2B 031d08f2db4a6c75585488faf43196a912e348edc9ff582e9c507c8f1c8ae2cf7c86aaa8265a8fa60540c2b3f4844d0aa01dad516344195bd4d40926d65a48fc SHA512 638123882bd29911fc9492ec152926572fec48eb6c1f5dd706aee3e59cad8be4963a334bb7a09a645dbedc3356f60ef7ac2ef7ab4ccf2c8926b547782175603c EBUILD Babel-2.15.0.ebuild 1198 BLAKE2B cfdfc98f3d94121f62e6a796d9162d0b176a720ea1e19779be5ef7089c46457cde5d196ee14b9a0fa32e0a34725869e9b2a187522c95e9290f25b7bf844e4651 SHA512 132463347450f893b97a427ac6630738e70c48b4cc3f5468728b64b8a821be6b496fcf8a7d9e2ffb816305497d82dedfc3c83b47cd9c658e2e5dd985d194ffe5 -MISC metadata.xml 840 BLAKE2B b0f46186ca0a319d3e4e1a658007b2cc59fe3a3ea9ede567af5084593f907e88dbe714d2b70c6a882ec95a5f90d4c0e3620ea0a939ad6e52650e770de88a45ba SHA512 621b66293259fd20c94a62ecf64673f7afcd714c18f054c8c0afe2d14e6e98c8abbdf6b4c5cc0043b5d30e513acab292d85c5587a02a9ae99ca007a28720c921 +EBUILD Babel-2.16.0.ebuild 1221 BLAKE2B 39da007a826750608c0b9afc7439c1f1b2a02f4f34ee80f37aa04580507712b16c77de6f559f2d316a64dd15b635b66809859db16422f9e3ce9f681459a08dd8 SHA512 05991451b66929c435b01fa5feca8344dd7131a4c9774e3632a32d38957e14cc5f86c6a7db62ddd6aef4a41d8edda0054137b2d8e8212f27a36f58873de93e6e +MISC metadata.xml 840 BLAKE2B febf5fd07590366dd842c63efcca3d7742e2b21e8272d666e0c0dfcbd513c76e7a4f048631a649be8cb0463bd7f983ba303598ada3e7d0be458fdc31e3c639d0 SHA512 f931cae138c9b74a455884857feabf8190b4c3f61ee97ed373cafe79b97b8b58c0821c12537c7cb6a372961d06ba4695779199097ea5cb8c851249dbeefb6517 diff --git a/dev-python/Babel/metadata.xml b/dev-python/Babel/metadata.xml index 9feb3d0da00b..550bc3dff65a 100644 --- a/dev-python/Babel/metadata.xml +++ b/dev-python/Babel/metadata.xml @@ -15,7 +15,7 @@ </longdescription> <stabilize-allarches/> <upstream> - <remote-id type="pypi">Babel</remote-id> + <remote-id type="pypi">babel</remote-id> <remote-id type="github">python-babel/babel</remote-id> <bugs-to>https://github.com/python-babel/babel/issues</bugs-to> </upstream> |