mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/pycountry: add 22.3.5
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST pycountry-22.1.10.tar.gz 10060795 BLAKE2B 51672b2e08e48528797e57e6a546261d4ceee0af364d5c943f243a5956008ffc417b02e553f376c252bfbfbf76af40585c9f910815a9c2943ff88be6fb9d4180 SHA512 93e5737df29affe5bbf8a2aa2caef59727adcc198eab301a5ddbc4275e32955cec0de9ab2820470a8cf87b0c0a9d48bfddd18411d93a700212aba8372e5a52b4
|
||||
DIST pycountry-22.3.5.tar.gz 10141551 BLAKE2B d645eade8ce9be3b99f4f2b189cc50c3395ecb3899ab9fa668066993abbfa576191cfcc05b7bb2764d088a86df492770bcc0a8834f04e6fde58a01defe8a1b14 SHA512 07dc507ee94f1880727761df197f81704386d9246163c9a5872f47083d37c7d1205dfbd28c6663ef0731a0b05277ade03a1a1929ab84087e0e85c05028c68b89
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
commit 57a64b69704640bd85270d886c369ef5a31eee80
|
||||
Author: Louis Sautier <sautier.louis@gmail.com>
|
||||
Date: Thu Sep 17 13:01:07 2020 +0200
|
||||
|
||||
Do not rely on CPython-specific __builtins__ for tests
|
||||
|
||||
This makes test_locales pass with PyPy3.
|
||||
|
||||
diff --git a/src/pycountry/tests/test_general.py b/src/pycountry/tests/test_general.py
|
||||
index ea697ae..ad1090f 100644
|
||||
--- a/src/pycountry/tests/test_general.py
|
||||
+++ b/src/pycountry/tests/test_general.py
|
||||
@@ -149,7 +149,7 @@ def test_locales():
|
||||
german = gettext.translation(
|
||||
"iso3166", pycountry.LOCALES_DIR, languages=["de"])
|
||||
german.install()
|
||||
- assert __builtins__["_"]("Germany") == "Deutschland"
|
||||
+ assert _("Germany") == "Deutschland"
|
||||
|
||||
|
||||
def test_removed_countries():
|
||||
26
dev-python/pycountry/pycountry-22.3.5.ebuild
Normal file
26
dev-python/pycountry/pycountry-22.3.5.ebuild
Normal file
@@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( pypy3 python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Database of countries, subdivisions, languages, currencies and script"
|
||||
HOMEPAGE="https://github.com/flyingcircusio/pycountry"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~riscv ~sparc ~x86"
|
||||
|
||||
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
BDEPEND="${RDEPEND}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
# https://github.com/flyingcircusio/pycountry/pull/51
|
||||
PATCHES=(
|
||||
"${FILESDIR}/pycountry-22.3.5-fix-tests-for-pypy3.patch"
|
||||
)
|
||||
Reference in New Issue
Block a user