forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michał Górny <[email protected]>
- Loading branch information
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters