diff options
Diffstat (limited to 'dev-python/pycountry')
| -rw-r--r-- | dev-python/pycountry/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pycountry/metadata.xml | 15 | ||||
| -rw-r--r-- | dev-python/pycountry/pycountry-19.8.18.ebuild | 31 |
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/pycountry/Manifest b/dev-python/pycountry/Manifest new file mode 100644 index 000000000000..6dfcf9279b55 --- /dev/null +++ b/dev-python/pycountry/Manifest @@ -0,0 +1 @@ +DIST pycountry-19.8.18.tar.gz 10003160 BLAKE2B ac7894e9fc1ed4e8f386cc6e07c1fc2abefee63c39c7c851c100519418606b52bc18be8da672930ceefdc7ca7b51571e4b3884ea0c20e547e5b596e249ebf407 SHA512 39ba06629eeea55460424d06992ca5f1e5bf6168b219dc4880ec326f6aa0c92a4fdc54d4143a8b8bb1490149af793e760e291c6d704104a57ba91e88228ab669 diff --git a/dev-python/pycountry/metadata.xml b/dev-python/pycountry/metadata.xml new file mode 100644 index 000000000000..91ff931f110d --- /dev/null +++ b/dev-python/pycountry/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en">ISO country, subdivision, language, currency and script definitions and + their translations</longdescription> + <upstream> + <remote-id type="pypi">pycountry</remote-id> + <remote-id type="bitbucket">flyingcircus/pycountry</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/pycountry/pycountry-19.8.18.ebuild b/dev-python/pycountry/pycountry-19.8.18.ebuild new file mode 100644 index 000000000000..0ce91bc3e4d6 --- /dev/null +++ b/dev-python/pycountry/pycountry-19.8.18.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Database of countries, subdivisions, languages, currencies and script" +HOMEPAGE="https://bitbucket.org/flyingcircus/pycountry" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 arm64 ~ia64 ppc ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_test() { + # https://bitbucket.org/techtonik/pycountry/issue/8/test_locales-pycountry-015-pypy + pushd "${BUILD_DIR}"/lib > /dev/null || die + if [[ ${EPYTHON} == pypy* ]]; then + sed -e 's:test_locales:_&:' -i pycountry/tests/test_general.py || die + fi + pytest -o cache_dir="${T}" -vv || die + popd > /dev/null || die +} |
