1 |
commit: 2be413922624d6b622539a37b9bb430742162761 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 31 08:02:17 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 31 10:14:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2be41392 |
7 |
|
8 |
dev-python/httplib2: Bump to 0.19.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/httplib2/Manifest | 1 + |
13 |
dev-python/httplib2/httplib2-0.19.1.ebuild | 50 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/httplib2/Manifest b/dev-python/httplib2/Manifest |
17 |
index aadcd1f8b58..07236ee57f0 100644 |
18 |
--- a/dev-python/httplib2/Manifest |
19 |
+++ b/dev-python/httplib2/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST httplib2-0.19.0.tar.gz 263522 BLAKE2B b35c8dcf86de17a5d8eac86a9a6b4110fb247925662e24a7645a67dfd0b2e640dc29875b41673c5a91a083f17e9619fd40dd08cf2c9ee7f48c8069bc14a50966 SHA512 9193a0e8e9a58a3f0e9b27fdf827932482a47b88af297af6e5f004164ca0b72feeff513b8191bf7c48d6714070a1390ae54eb8a2c6840f54f2580889c7837c7f |
22 |
+DIST httplib2-0.19.1.tar.gz 263971 BLAKE2B ec254249f5c8df2a0dc3fe4e2e9088f6ca14ba84516be77450beacab41cd295d4e741ac6026471fcf8bb8464ebd732a0a856901e5c09324a0f96ad2338b397e7 SHA512 0c87b3c9923e81c83df5257ce60f7248d86a64aea0a02d5a3f34be68c692c6abd896f95214899dc6e81b23677efc7684a3cba4c1a47261176dd26c3988054e55 |
23 |
|
24 |
diff --git a/dev-python/httplib2/httplib2-0.19.1.ebuild b/dev-python/httplib2/httplib2-0.19.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..39da0f2066a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/httplib2/httplib2-0.19.1.ebuild |
29 |
@@ -0,0 +1,50 @@ |
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_{7..9} pypy3 ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="A comprehensive HTTP client library" |
40 |
+HOMEPAGE="https://pypi.org/project/httplib2/" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ app-misc/ca-certificates |
49 |
+ dev-python/pyparsing[${PYTHON_USEDEP}]" |
50 |
+BDEPEND=" |
51 |
+ test? ( |
52 |
+ dev-python/pytest-timeout[${PYTHON_USEDEP}] |
53 |
+ )" |
54 |
+ |
55 |
+distutils_enable_tests pytest |
56 |
+ |
57 |
+PATCHES=( "${FILESDIR}"/${PN}-0.12.1-use-system-cacerts.patch ) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ sed -i -e '/--cov/d' setup.cfg || die |
61 |
+ distutils-r1_src_prepare |
62 |
+} |
63 |
+ |
64 |
+python_test() { |
65 |
+ local deselect=( |
66 |
+ # broken by using system certificates |
67 |
+ tests/test_cacerts_from_env.py::test_certs_file_from_builtin |
68 |
+ tests/test_cacerts_from_env.py::test_certs_file_from_environment |
69 |
+ tests/test_cacerts_from_env.py::test_with_certifi_removed_from_modules |
70 |
+ |
71 |
+ # broken by new PySocks, probably |
72 |
+ tests/test_proxy.py::test_server_not_found_error_is_raised_for_invalid_hostname |
73 |
+ tests/test_proxy.py::test_socks5_auth |
74 |
+ ) |
75 |
+ |
76 |
+ # tests in python* are replaced by tests/ |
77 |
+ # upstream fails at cleaning up stuff |
78 |
+ epytest ${deselect[@]/#/--deselect } tests |
79 |
+} |