summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-04-05 20:54:54 +0200
committerMichał Górny <mgorny@gentoo.org>2024-04-05 21:45:31 +0200
commitc6be955602d5ec02af3ef884e4ee6f0cfd65e98f (patch)
treede103f90a801402a958ae73012bae73c03f1a373 /dev-python/phonenumbers
parentdev-python/parso: Bump to 0.8.4 (diff)
downloadgentoo-c6be955602d5ec02af3ef884e4ee6f0cfd65e98f.tar.gz
gentoo-c6be955602d5ec02af3ef884e4ee6f0cfd65e98f.tar.bz2
gentoo-c6be955602d5ec02af3ef884e4ee6f0cfd65e98f.zip
dev-python/phonenumbers: Bump to 8.13.34
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/phonenumbers')
-rw-r--r--dev-python/phonenumbers/Manifest1
-rw-r--r--dev-python/phonenumbers/phonenumbers-8.13.34.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/phonenumbers/Manifest b/dev-python/phonenumbers/Manifest
index 0322cff6dde7..70d4a2c3140e 100644
--- a/dev-python/phonenumbers/Manifest
+++ b/dev-python/phonenumbers/Manifest
@@ -1 +1,2 @@
DIST python-phonenumbers-8.13.33.gh.tar.gz 4915782 BLAKE2B 651be55fe6ee6f78f5160b7d88a98e88f2fec21df71589f181e02500a578ce1beb3c3b852b7df8fc423f9ce4c5a9155d571dcb414ee78d2951cff42a28d4ed63 SHA512 0402908a43ff93a1948edc7e08c41c9ab2d406215b810ce06175d9b6e2eb17cd6b597082b6bfb2c9f74d2247a646ffef4256996fc933ce9a502b2305d279a28f
+DIST python-phonenumbers-8.13.34.gh.tar.gz 4915435 BLAKE2B 9b3addd5553f71a0e47f7bfdc5228155a2bb803b8e7e6a81349ee6445fcf0d57018875745049f7d2a1f30a82359fe9211affe17b00496eba06facd2ee82f6a95 SHA512 3d7443562fd0f2c2a49edaca78cfdc7aab42d77906826c53eb3b7e4766753242ba4ef9db6e1a6ee5f7d00e169336546069d2932ca0a907622e302e2ea09d46e9
diff --git a/dev-python/phonenumbers/phonenumbers-8.13.34.ebuild b/dev-python/phonenumbers/phonenumbers-8.13.34.ebuild
new file mode 100644
index 000000000000..2fc9bdbaa7c9
--- /dev/null
+++ b/dev-python/phonenumbers/phonenumbers-8.13.34.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+MY_P=python-${P}
+DESCRIPTION="Python port of Google's libphonenumber"
+HOMEPAGE="
+ https://github.com/daviddrysdale/python-phonenumbers/
+ https://pypi.org/project/phonenumbers/
+"
+SRC_URI="
+ https://github.com/daviddrysdale/python-phonenumbers/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}/python
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ test? (
+ dev-python/protobuf-python[${PYTHON_USEDEP}]
+ )
+"
+
+DOCS=( ../README.md )
+
+python_test() {
+ "${EPYTHON}" testwrapper.py -v || die "Tests failed with ${EPYTHON}"
+}