From abaa75b10f899ada8dd05b23cc03205064394bc6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 22 Jan 2021 20:28:19 +0000 Subject: gentoo resync : 22.01.2021 --- dev-python/Faker/Faker-5.5.1.ebuild | 28 ++++++++++++++++++ dev-python/Faker/Manifest | 4 +++ .../Faker/files/Faker-5.5.1-ukposttest.patch | 33 ++++++++++++++++++++++ dev-python/Faker/metadata.xml | 16 +++++++++++ 4 files changed, 81 insertions(+) create mode 100644 dev-python/Faker/Faker-5.5.1.ebuild create mode 100644 dev-python/Faker/Manifest create mode 100644 dev-python/Faker/files/Faker-5.5.1-ukposttest.patch create mode 100644 dev-python/Faker/metadata.xml (limited to 'dev-python/Faker') diff --git a/dev-python/Faker/Faker-5.5.1.ebuild b/dev-python/Faker/Faker-5.5.1.ebuild new file mode 100644 index 000000000000..efc26fd7d0f0 --- /dev/null +++ b/dev-python/Faker/Faker-5.5.1.ebuild @@ -0,0 +1,28 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +inherit distutils-r1 + +DESCRIPTION="a Python package that generates fake data for you" +HOMEPAGE="https://github.com/joke2k/faker" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}] + >=dev-python/text-unidecode-1.3[${PYTHON_USEDEP}]" +DEPEND="" +BDEPEND="test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + dev-python/validators[${PYTHON_USEDEP}] + )" + +# Specific test dependency for one country post code tests +PATCHES=( "${FILESDIR}"/${PN}-5.5.1-ukposttest.patch ) + +distutils_enable_tests pytest diff --git a/dev-python/Faker/Manifest b/dev-python/Faker/Manifest new file mode 100644 index 000000000000..37223fd8cb9f --- /dev/null +++ b/dev-python/Faker/Manifest @@ -0,0 +1,4 @@ +AUX Faker-5.5.1-ukposttest.patch 1224 BLAKE2B bb42b484de7b4d10c328b01111cd053d3e643265d35ea3cb0f75eabbf3f5dd6db051e48acd000c1716c2dbde41f0be6c6052d90c663eaddedef5dea936cdcc28 SHA512 cda5c8a7c05dac677d8513eebe227c2f23510b3a2f35aea5bd901d1c1466658ab0a440dd119f0ceb29a57e7c91320da7b744f924899f36cd0b774cea0fc6a95e +DIST Faker-5.5.1.tar.gz 1045964 BLAKE2B d0e06b0994fec1b1fbbfbc8cabb12f9a3666894304c673a8e7cc27bb52a7bf66bef8d110665b459a1c43e2b5f0d93e59f793f00279b123ff25c36ba4b4ed2cac SHA512 58d240801d72bbb884d1788931621e4ae9fa4e3ea749af90d9703fe99af23c38c86902970574838135398305877e8d196d18dc14eeb71cfe9c9c6390fbf511cb +EBUILD Faker-5.5.1.ebuild 742 BLAKE2B 7a7ba1a3873bf5fa97f8dc09467763b95b47ea646629aba2f9c68694f0c17d5fbfc0daeaaa1bf616cc44e4d1ec6c4ee08244d37674eaf52ef0d3b609869accd5 SHA512 ea2a3dede44735c7ae68aa40b30f35351d9bd461cf2897bf86199c3f43a08daf8ddfdaecd646e874243c72fe7828c3b13fe7f62dcf8993c2add96b87ded82df4 +MISC metadata.xml 473 BLAKE2B 339c0263dce223547f0a5267983079a02f885abc66023578dd24a602c11dfda07faffb43b78f7805fcf31804de10568baeabff695bfbd64d85863a392056436a SHA512 414f9ce994c58c60b8f58e0531208d189698c932d18b25dae03dfb0eef181452532ff57ff9b40707acc896184742a36dc3793a92217257969bb92bb886e8b67d diff --git a/dev-python/Faker/files/Faker-5.5.1-ukposttest.patch b/dev-python/Faker/files/Faker-5.5.1-ukposttest.patch new file mode 100644 index 000000000000..5ff925613ac3 --- /dev/null +++ b/dev-python/Faker/files/Faker-5.5.1-ukposttest.patch @@ -0,0 +1,33 @@ +diff -Naur Faker-5.5.1.orig/tests/providers/test_address.py Faker-5.5.1/tests/providers/test_address.py +--- Faker-5.5.1.orig/tests/providers/test_address.py 2021-01-07 17:08:37.000000000 +0100 ++++ Faker-5.5.1/tests/providers/test_address.py 2021-01-12 22:07:13.748206737 +0100 +@@ -4,8 +4,6 @@ + + import pytest + +-from ukpostcodeparser.parser import parse_uk_postcode +- + from faker.providers.address.cs_CZ import Provider as CsCzAddressProvider + from faker.providers.address.da_DK import Provider as DaDkAddressProvider + from faker.providers.address.de_AT import Provider as DeAtAddressProvider +@@ -375,20 +373,6 @@ + assert re.fullmatch(r'(?:Apt\.|Suite) \d{3}', secondary_address) + + +-class TestEnGb: +- """Test en_GB address provider methods""" +- +- def test_postcode(self, faker, num_samples): +- for _ in range(num_samples): +- assert isinstance(parse_uk_postcode(faker.postcode()), tuple) +- +- def test_county(self, faker, num_samples): +- for _ in range(num_samples): +- county = faker.county() +- assert isinstance(county, str) +- assert county in EnGbAddressProvider.counties +- +- + class TestEnUS: + """Test en_US address provider methods""" + diff --git a/dev-python/Faker/metadata.xml b/dev-python/Faker/metadata.xml new file mode 100644 index 000000000000..61d28b32a142 --- /dev/null +++ b/dev-python/Faker/metadata.xml @@ -0,0 +1,16 @@ + + + + + voyageur@gentoo.org + Bernard Cafarelli + + + python@gentoo.org + Python + + + Faker + joke2k/faker + + -- cgit v1.2.3