From ecdac123787b96ce6649f0f91da12ea6458cc2b1 Mon Sep 17 00:00:00 2001 From: Palica Date: Tue, 23 Jun 2020 22:35:08 +0200 Subject: Updating liguros repo --- dev-python/pycountry/Manifest | 1 + dev-python/pycountry/metadata.xml | 15 +++++++++++++ dev-python/pycountry/pycountry-19.8.18.ebuild | 31 +++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 dev-python/pycountry/Manifest create mode 100644 dev-python/pycountry/metadata.xml create mode 100644 dev-python/pycountry/pycountry-19.8.18.ebuild (limited to 'dev-python/pycountry') 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 @@ + + + + + python@gentoo.org + Python + + ISO country, subdivision, language, currency and script definitions and + their translations + + pycountry + flyingcircus/pycountry + + gentoo-staging + 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 +} -- cgit v1.3