summaryrefslogtreecommitdiff
path: root/dev-python/tld
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/tld')
-rw-r--r--dev-python/tld/Manifest3
-rw-r--r--dev-python/tld/files/tld-0.12.5-names_cli_test.patch18
-rw-r--r--dev-python/tld/tld-0.12.5.ebuild27
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/tld/Manifest b/dev-python/tld/Manifest
index 9edcc356e815..39f6d67df4eb 100644
--- a/dev-python/tld/Manifest
+++ b/dev-python/tld/Manifest
@@ -1,5 +1,8 @@
+AUX tld-0.12.5-names_cli_test.patch 731 BLAKE2B 6e670b04f8bd8b84862fd054ec8196208fad70e9adddebd71ed7262189ce3ed0c9a257d55524eca206e878da9888822e21d89a23f9571f86af1b0305abf0d97d SHA512 527b83faa10afab2e295973b4999a7a2e6344b8b0d5cf2bf920868b0346d1dc3668d5290fa3f93ad4617b9b2f1f435cf27b96eb4c9c8bda0ebe91543d09290f9
DIST tld-0.12.2.tar.gz 1347015 BLAKE2B d284581917a9ddee026d316961f2cdc6efc8a3c8dee8112c7266d55a9493f1aca831db0635db02b737bb3e02b3910a8822e121a5317ab02f5078075839e02c91 SHA512 b997bd3cdf22f65862c9b3e7d446014325d9538dd06eeed86f4b9b6c6ba440829b5d611cc19fed9bf8bf039ef01c4258c71b5c765bbecdfc345dd00e73c7fca1
DIST tld-0.12.3.tar.gz 1498596 BLAKE2B 7a1d33c3527bc1dfeb18bfcc5af4d153f9cc39b52e858f4ac5907d0edece67da6bb6f900d028937bafb468b31534ed284a54effae6d97397dd33e27261af3730 SHA512 fe33bb18bceea6e1eb4ba3ca46dc54c81a8d3a1f4187078488676b951e6734a885a44525f6f5c4dc8c2fea1b0f4ffd8060244fbf33f9b1bd9dfafbec12876711
+DIST tld-0.12.5.tar.gz 1500013 BLAKE2B d6b51e144f9c1305212ccb537b3488b7643190598674103e8fc7772c34f1e5a6eefb09d957a6ecd1ffa3e9ab0cc41b07dd97ef70f031259393c7410cd05e0b29 SHA512 90fa3911f64368e3c75d034b5854d4460ac41b603b431ef94bb0b49bbd37f5fadb0a084f24849aa8fa2a74608ea9555eec2d4372641bc4d135e1cb4fd3ad23ed
EBUILD tld-0.12.2.ebuild 492 BLAKE2B 9009d45cad616dbf0366bd6167110427247f21ec33c2bf761ff2c718c2ddc6162063ddea6b287270445cc7aeda8190933a8b1ef4a78f702052e549368850a69e SHA512 c101a9cce181a51628a533fa98dbd9307aee29ef6ed66e23dc37cd3b8d54dabf3820c62a850acdae67af03500348d2f3b452e28f17fccd7b4eb7bc14e6969c0b
EBUILD tld-0.12.3.ebuild 463 BLAKE2B 645008d1225f5b097ecccaa24e5bb83d4c204b992cbeade7578d0c6b6091fe704776df90a9f00bfa8666cc277b71bf3f675b33d4a1d2927858341c80798fdd6d SHA512 86029c7df54f6331cf6831eb12a4e2a55bc6ffda380bdcbc0e1bd887a539065df38712780759fbcfe6cf822031ca808f366d9320734f56d5e696dc07e0b35c86
+EBUILD tld-0.12.5.ebuild 713 BLAKE2B 39cf50ac11025df697d0f5466abf902db37d63216e5755666d770295b34081b3d396b9b892dc741b8fc7dd5e8a3a651c429dc4d1b7a0ac42c22f0a2938d69631 SHA512 d6d0367f4da74bfb91dcafa5b74de4f80945a95bf55c4531a198a67c1f0cc2696bd7ef47eae62450447244bc7321d3c73554c1732674af7110af48df5aede812
MISC metadata.xml 478 BLAKE2B e00ab9c47661bb6c6e2d0ffa74bb43154ae546a5b92d3c5ce0396a5935b44e3a3b3d4ab201d305d106e98c8c26a2fee31032878bb2109f8e45f2509a09280992 SHA512 97d25f0e6286a1434f0a27ec986d842ba0693559a646073493d6cebfa8a573bcd6ebe870cac8603556ff65d7061703af8aa963701a1c9513a737402819bab030
diff --git a/dev-python/tld/files/tld-0.12.5-names_cli_test.patch b/dev-python/tld/files/tld-0.12.5-names_cli_test.patch
new file mode 100644
index 000000000000..05af5236b1e2
--- /dev/null
+++ b/dev-python/tld/files/tld-0.12.5-names_cli_test.patch
@@ -0,0 +1,18 @@
+diff -Naur tld-0.12.5.orig/src/tld/tests/test_core.py tld-0.12.5/src/tld/tests/test_core.py
+--- tld-0.12.5.orig/src/tld/tests/test_core.py 2021-01-11 22:28:08.000000000 +0100
++++ tld-0.12.5/src/tld/tests/test_core.py 2021-01-12 22:27:47.286114741 +0100
+@@ -710,14 +710,6 @@
+ )
+ )
+
+- @internet_available_only
+- @log_info
+- def test_19_update_tld_names_cli(self):
+- """Test the return code of the CLI version of `update_tld_names`."""
+- reset_tld_names()
+- res = update_tld_names_cli()
+- self.assertEqual(res, 0)
+-
+ @log_info
+ def test_20_parse_tld_custom_tld_names_good_patterns(self):
+ """Test `parse_tld` good URL patterns for custom tld names."""
diff --git a/dev-python/tld/tld-0.12.5.ebuild b/dev-python/tld/tld-0.12.5.ebuild
new file mode 100644
index 000000000000..ba3c451c647b
--- /dev/null
+++ b/dev-python/tld/tld-0.12.5.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7,8,9} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+inherit distutils-r1
+
+DESCRIPTION="Extract the top level domain (TLD) from the URL given"
+HOMEPAGE="https://github.com/barseghyanartur/tld"
+SRC_URI="https://github.com/barseghyanartur/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? (
+ dev-python/Faker[${PYTHON_USEDEP}]
+ dev-python/tox[${PYTHON_USEDEP}]
+ )"
+
+# Calls system binary directly
+PATCHES=( "${FILESDIR}"/${PN}-0.12.5-names_cli_test.patch )
+
+distutils_enable_tests setup.py