diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-07 22:29:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-07 22:29:07 +0100 |
commit | de1079fbccb3bceb32818385f756637e266f2107 (patch) | |
tree | 570d809a9fcbf27d05be1a94090b087521c5514b /dev-python/phonenumbers/phonenumbers-8.13.20.ebuild | |
parent | 2cd907d16458ba3a99ec82155d7268e2d991a078 (diff) |
gentoo auto-resync : 07:09:2023 - 22:29:07
Diffstat (limited to 'dev-python/phonenumbers/phonenumbers-8.13.20.ebuild')
-rw-r--r-- | dev-python/phonenumbers/phonenumbers-8.13.20.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/phonenumbers/phonenumbers-8.13.20.ebuild b/dev-python/phonenumbers/phonenumbers-8.13.20.ebuild new file mode 100644 index 000000000000..61f15b7f6118 --- /dev/null +++ b/dev-python/phonenumbers/phonenumbers-8.13.20.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..11} ) + +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}" +} |