summaryrefslogtreecommitdiff
path: root/dev-python/babel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-23 03:02:57 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-23 03:02:57 +0000
commit71dd9d29cdaf7cc0ecdb9ea37d128726a941c630 (patch)
tree4eccd905f575579fe47abb8a83bbdb44ceb8c929 /dev-python/babel
parentc7a7ec40cf928d8fc6a8241aa208272c008c7b4d (diff)
gentoo auto-resync : 23:11:2024 - 03:02:56
Diffstat (limited to 'dev-python/babel')
-rw-r--r--dev-python/babel/Manifest4
-rw-r--r--dev-python/babel/babel-2.16.0.ebuild55
-rw-r--r--dev-python/babel/metadata.xml22
3 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/babel/Manifest b/dev-python/babel/Manifest
new file mode 100644
index 000000000000..08fbfaa872e1
--- /dev/null
+++ b/dev-python/babel/Manifest
@@ -0,0 +1,4 @@
+DIST babel-2.16.0.tar.gz 9348104 BLAKE2B e8b674312140dca805b3faf4531493d613b663d4a04aa42a86438d49dd547b598eec9e3c3ca79d715d1c1589f7d416073fcf7e58df468e7c449fa05c70e7b776 SHA512 c80b52cd38eb2fb34b1d19ef3b6c50c16b129a4137d42eba900e3f77e81a5ad03ca319aa37dbdfd3bb7cbe31adbfa6007413962c348912dc9dca09d55fa4438b
+DIST cldr-common-45.0.zip 31812363 BLAKE2B 031d08f2db4a6c75585488faf43196a912e348edc9ff582e9c507c8f1c8ae2cf7c86aaa8265a8fa60540c2b3f4844d0aa01dad516344195bd4d40926d65a48fc SHA512 638123882bd29911fc9492ec152926572fec48eb6c1f5dd706aee3e59cad8be4963a334bb7a09a645dbedc3356f60ef7ac2ef7ab4ccf2c8926b547782175603c
+EBUILD babel-2.16.0.ebuild 1192 BLAKE2B 9ae1299fb58f8da35a8f9c3369fabe65f499ec87001bd92f29ca1fc983fc66700d730582fd19bc3b2171dccc320d6ae9183b643bf9c98fb1a729910292ed06ce SHA512 5102eb6ed251c361af436afb3f9c7c7eebae2aaea874e9c6387b22854c0a59f96df6013c93b124c0d2a849445260f02d623e2b8ab2ac07cdf56ba63be1943ffd
+MISC metadata.xml 840 BLAKE2B febf5fd07590366dd842c63efcca3d7742e2b21e8272d666e0c0dfcbd513c76e7a4f048631a649be8cb0463bd7f983ba303598ada3e7d0be458fdc31e3c639d0 SHA512 f931cae138c9b74a455884857feabf8190b4c3f61ee97ed373cafe79b97b8b58c0821c12537c7cb6a372961d06ba4695779199097ea5cb8c851249dbeefb6517
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..e7df906e2f8f
--- /dev/null
+++ b/dev-python/babel/babel-2.16.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+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 ~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/metadata.xml b/dev-python/babel/metadata.xml
new file mode 100644
index 000000000000..550bc3dff65a
--- /dev/null
+++ b/dev-python/babel/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <longdescription lang="en">
+ A collection of tools for internationalizing Python applications
+ Babel is composed of two major parts:
+ - tools to build and work with gettext message catalogs
+ - a Python interface to the CLDR (Common Locale Data Repository),
+ providing access to various locale display names, localized number
+ and date formatting, etc.
+ </longdescription>
+ <stabilize-allarches/>
+ <upstream>
+ <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>
+</pkgmetadata>