summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-03-14 16:57:59 +0100
committerMichał Górny <mgorny@gentoo.org>2022-03-14 18:04:22 +0100
commit645ac0e92d25d5901b5822e83106190eb5f3fc48 (patch)
treed1b22bd3cd0aab4967a75997a09618fde80b6ad8 /dev-python/phonenumbers
parentapp-admin/awscli: Bump to 1.22.73 (diff)
downloadgentoo-645ac0e92d25d5901b5822e83106190eb5f3fc48.tar.gz
gentoo-645ac0e92d25d5901b5822e83106190eb5f3fc48.tar.bz2
gentoo-645ac0e92d25d5901b5822e83106190eb5f3fc48.zip
dev-python/phonenumbers: Bump to 8.12.45
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.12.45.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/phonenumbers/Manifest b/dev-python/phonenumbers/Manifest
index 38cbd0169745..00b29e534ca0 100644
--- a/dev-python/phonenumbers/Manifest
+++ b/dev-python/phonenumbers/Manifest
@@ -1,2 +1,3 @@
DIST phonenumbers-8.12.43.tar.gz 2270278 BLAKE2B 7cae8ad1180231b7a3f6a852563fe8a4e3c515d72e3b969fe37412714cd4e36cb61b96d779b1ee2e8610e648342d6dd9f743b1a049ee7889bf592292641aead3 SHA512 bc0dbfb78f490b70215c33b284761cd0a88183fb51a602359913617f512579862d5b216d2899bc19a143e3a1d9fd16163e5c54bfaded1fe59ba1158b3e7e68a6
DIST python-phonenumbers-8.12.44.gh.tar.gz 4897962 BLAKE2B 27deab5c717dfc4aa697d2bb4b764fb933101cfd6ad8b9cf573cd6b9027556cabf6d471decadff5dd317ff3fdffc8346b2ee72ea6c48505dc9bb9410c13fe393 SHA512 e3531cf9895bbb40c7444743ec2896fa2df0c4282bbfe085e51afaac5c6b0a76d6245ee899409f72bcbef64ce757aff0db4c9edc399ac0138a03ad1a6580bab1
+DIST python-phonenumbers-8.12.45.gh.tar.gz 4898103 BLAKE2B e1102bd6f0911a7d1098fbe020f71b8ffb1020ff0acecc2f58383ecb538ba09b9fcbc3febd09ca8863093a6a017c74a9e834bea50c44c9b87bf775a4057825d4 SHA512 539170a363541a7bbf04d3448786d4ab4da2928eedef3d02ce0ba075e5b7c43a36d0e7071ad764026bac01e445da340756e6ef8cf484e39ea4f9d8e8897c6fa5
diff --git a/dev-python/phonenumbers/phonenumbers-8.12.45.ebuild b/dev-python/phonenumbers/phonenumbers-8.12.45.ebuild
new file mode 100644
index 000000000000..46dbfb8b29a0
--- /dev/null
+++ b/dev-python/phonenumbers/phonenumbers-8.12.45.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+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 ~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}"
+}