diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-21 11:14:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-21 11:14:12 +0100 |
commit | 03633f33c2184a87f7a4cebae72542343cf0490c (patch) | |
tree | 51a044dec7586be070d68ebb95d563883b02c726 /dev-python/phonenumbers/phonenumbers-8.13.21.ebuild | |
parent | c0e834f207174ee62c093753cea0176c947a9ba1 (diff) |
gentoo auto-resync : 21:09:2023 - 11:14:12
Diffstat (limited to 'dev-python/phonenumbers/phonenumbers-8.13.21.ebuild')
-rw-r--r-- | dev-python/phonenumbers/phonenumbers-8.13.21.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/phonenumbers/phonenumbers-8.13.21.ebuild b/dev-python/phonenumbers/phonenumbers-8.13.21.ebuild new file mode 100644 index 000000000000..e686a889cbea --- /dev/null +++ b/dev-python/phonenumbers/phonenumbers-8.13.21.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 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 ~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}" +} |