1 |
commit: 0c1f264b83fc1c65e4c0f069e20bbdc8788fee89 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 12 20:14:22 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 12 21:02:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c1f264b |
7 |
|
8 |
dev-python/python-email-validator: Bump to 1.1.3 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-email-validator/Manifest | 1 + |
13 |
.../python-email-validator-1.1.3.ebuild | 35 ++++++++++++++++++++++ |
14 |
2 files changed, 36 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/python-email-validator/Manifest b/dev-python/python-email-validator/Manifest |
17 |
index 813d1c7e6ac..c678424339a 100644 |
18 |
--- a/dev-python/python-email-validator/Manifest |
19 |
+++ b/dev-python/python-email-validator/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST python-email-validator-1.1.2.tar.gz 19421 BLAKE2B 118165ceed5da6fed377180662496f5bc996f1d3c2201e6a014cae8f66a9ff3f447900aff07f778fdec49cd0c680ad6f9316f30f6c152b7eed4f1f57adc1ba74 SHA512 b40f8ecd65a9a5945a1a84b174398fc495afccd27ad5fcd7b4a03ecd26bcff6dd6ac3b5f75ac200cf2647b92d4defb25afe1dda28f82ed86bd8c2bd82708d0aa |
22 |
+DIST python-email-validator-1.1.3.tar.gz 19863 BLAKE2B 10700b4c6a48c50095045b6e3c9218cd565776b26e17c1c043633e208b9fbd346162cedaa4a1116ec2fccf63b4383438c7e1aef6faf9d2ead5512af7f934675c SHA512 d9087bf56783daf389909e13652a9db8f0408badf454f6239aa20f6a5e9510619d3662cf1567a03d0b14c4bbe81644509cd12975b2aa1b544d644b6c2b2854f4 |
23 |
|
24 |
diff --git a/dev-python/python-email-validator/python-email-validator-1.1.3.ebuild b/dev-python/python-email-validator/python-email-validator-1.1.3.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..68cc0b7a9cc |
27 |
--- /dev/null |
28 |
+++ b/dev-python/python-email-validator/python-email-validator-1.1.3.ebuild |
29 |
@@ -0,0 +1,35 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="A robust email syntax and deliverability validation library" |
39 |
+HOMEPAGE="https://github.com/JoshData/python-email-validator" |
40 |
+SRC_URI="https://github.com/JoshData/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="CC0-1.0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+SLOT="0" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ >=dev-python/idna-2.0.0[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/dnspython-1.15.0[${PYTHON_USEDEP}] |
49 |
+" |
50 |
+ |
51 |
+distutils_enable_tests pytest |
52 |
+ |
53 |
+python_test() { |
54 |
+ local deselect=( |
55 |
+ # these tests rely on access to gmail.com |
56 |
+ tests/test_main.py::test_deliverability_no_records |
57 |
+ tests/test_main.py::test_deliverability_found |
58 |
+ tests/test_main.py::test_deliverability_fails |
59 |
+ tests/test_main.py::test_validate_email__with_caching_resolver |
60 |
+ tests/test_main.py::test_validate_email__with_configured_resolver |
61 |
+ ) |
62 |
+ |
63 |
+ epytest ${deselect[@]/#/--deselect } |
64 |
+} |