diff options
-rw-r--r-- | dev-python/pycountry/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pycountry/metadata.xml | 1 | ||||
-rw-r--r-- | dev-python/pycountry/pycountry-1.19.ebuild | 31 |
3 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/pycountry/Manifest b/dev-python/pycountry/Manifest index 0fcb5705ac30..31d73b74fa29 100644 --- a/dev-python/pycountry/Manifest +++ b/dev-python/pycountry/Manifest @@ -2,3 +2,4 @@ DIST pycountry-1.12.tar.gz 18606424 SHA256 dce2893ceac5d5264e7d0b6bf9f0421fb9ff8 DIST pycountry-1.13.tar.gz 5007397 SHA256 3b72f2c334e702d463205e510d8d9b3fc8364a2f647074f543a1da2602730918 SHA512 1b32e87630efa8d3b6fbd4f60ce837c4df451fb097402b658d63ba6589b5761c719a80232142d557a7220ad549fcf4cb686b12ab3b3b5f2be51253548d0169ac WHIRLPOOL bc5818ce45c5bb23bb37a4e375acdfcc9419aa602940985a519a1941f28655156d46a0f17b2ace87e92f8f62af6fdf81b89817c69f2f5a4e12d1a026cbb9eefd DIST pycountry-1.14.tar.gz 5009511 SHA256 e5012671e4c1e0280574fff5bce50d892e8b56dea43e867661088c1bf91c2f0c SHA512 93196bed14b616fd696ff993da8b49254c5fd1f9af37f5519e64b27d7e58cee25ace8fcfbe0328fc6e03f1ad5f3be70c390f467643ad9b419b3ec65e03c7adbf WHIRLPOOL 6231af9dc9f63d4b22b10ca0bbbded9a9e3e2d5728825dc84ea86eeee3e8d1c39b7c3331187cbff53cd572cfeb1fa3639c8452d97a6cddc317b06bbeac5e431d DIST pycountry-1.18.tar.gz 5020542 SHA256 23bb173d0281e98eb7b432d8dc6819e5fe6573e505454d228558f61e1f5ae1e6 SHA512 eab2bf1711f514b3842aee6004a904573e974b13757cf3c1a388eb8a292d92e3bdb801265a1c146df5fd510bd830297ddfcc64e41c0ed17c385335837f6721dc WHIRLPOOL c697250bbe13e9b471e0b19857d4afcfdaaf85410a07131727e75c23ac5d7f214682e993f1d799c26417e79ae78b83400e0e3401d2bcbb4afae5d40bf9456346 +DIST pycountry-1.19.tar.gz 5022557 SHA256 132ecf3343e4bde8fd0c48a4345a4a8a6144fbdcdaf190a43a7e34c99e91be4d SHA512 850d32504c984d1e2959a909fc367da402b1d1adf4f19914fbbf61784fe30487c5ea92e5579ecfd80bff040cffabc9335d55589df32f54af0de032e042a49c77 WHIRLPOOL c21da359d57573e983db9e9d6c5a556e15c4db1436624b6645af24946338d1728beac8ab7c1cc4e66e8a3571f60c1d5e7b398151a322670c1ad7caa21d6ab19f diff --git a/dev-python/pycountry/metadata.xml b/dev-python/pycountry/metadata.xml index e9de39d4efbe..d3c69a8b0ffa 100644 --- a/dev-python/pycountry/metadata.xml +++ b/dev-python/pycountry/metadata.xml @@ -9,5 +9,6 @@ their translations</longdescription> <upstream> <remote-id type="pypi">pycountry</remote-id> + <remote-id type="bitbucket">flyingcircus/pycountry</remote-id> </upstream> </pkgmetadata> diff --git a/dev-python/pycountry/pycountry-1.19.ebuild b/dev-python/pycountry/pycountry-1.19.ebuild new file mode 100644 index 000000000000..d19095979b11 --- /dev/null +++ b/dev-python/pycountry/pycountry-1.19.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} pypy 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="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~sparc ~ppc ~x86" +IUSE="test" + +DEPEND="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 + if [[ "${EPYTHON}" == pypy || "${EPYTHON}" == pypy3 ]]; then + sed -e 's:test_locales:_&:' -i pycountry/tests/test_general.py || die + fi + py.test ${PN}/tests/test_general.py || die + popd > /dev/null +} |