1 |
commit: 44f86f9d1aa28c879ba16e3e70a0ae72b9f684ce |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 21 13:48:08 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 21 13:59:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f86f9d |
7 |
|
8 |
dev-python/ndg-httpsclient: Bump to 0.5.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/709964 |
11 |
Closes: https://bugs.gentoo.org/654612 |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
dev-python/ndg-httpsclient/Manifest | 1 + |
15 |
.../ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild | 49 ++++++++++++++++++++++ |
16 |
2 files changed, 50 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/ndg-httpsclient/Manifest b/dev-python/ndg-httpsclient/Manifest |
19 |
index cdc9f522322..7f161b48de3 100644 |
20 |
--- a/dev-python/ndg-httpsclient/Manifest |
21 |
+++ b/dev-python/ndg-httpsclient/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST ndg_httpsclient-0.4.0.tar.gz 24038 BLAKE2B 147ba36c966b2220c068ce3376bd84259807f66c57141fee4ed95457333cd9d568d19fd4d3348e7ef25d456e3f7d794f83f8302a15beb16f451aa02ef6181848 SHA512 3c0225a20c25cf0f12f03005bb79e738527c0488bb660c1eb3b55c505a0ef503002d37fcffb3d013e5f91101bdd03080a68d5805d6d29b682cc01bdc9f0e4a19 |
24 |
DIST ndg_httpsclient-0.4.2.tar.gz 25062 BLAKE2B 740075cf3031547028afa3ec2e005e5430e7fbb5c2bfd444e4051c60a9ac14ecacd3048f87f546516bddc4c0403738aa3ef227b3fd763a48bca28da09a47f707 SHA512 c7d6f442242ce01f69d2386b8ed41e4e5f72a2523ecbe38785c4333405f1b000e298133ccc4169d9685a3dcdcf0b20567c8e4b2dfd36f42721d36c73ee27d90a |
25 |
+DIST ndg_httpsclient-0.5.1.tar.gz 26665 BLAKE2B 1c7f0a8d41b945d2b2a51cd69397ab0943cb91e25013c931f055c5608bc3a0106a99d9b126e8caaac9f8d9b409ec117631fb23f19dfd3194b783548ce3536050 SHA512 b2b4c1b1df87ea1a94811b9ae831e7bf32af27258f487fd5ec319e0e6e0d79dfdb1f7bfadaf397d0693a8a7f0720df170a7fc946aaf10c82e3957ac5464f672e |
26 |
|
27 |
diff --git a/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild b/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..4ad33ed6836 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild |
32 |
@@ -0,0 +1,49 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL" |
44 |
+HOMEPAGE=" |
45 |
+ https://github.com/cedadev/ndg_httpsclient/ |
46 |
+ https://pypi.org/project/ndg-httpsclient/" |
47 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/-/_}.tar.gz" |
48 |
+S="${WORKDIR}/${P/-/_}" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~x86" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-python/pyaes[${PYTHON_USEDEP}] |
56 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}]" |
57 |
+# we need to block the previous versions since incorrect namespace |
58 |
+# install breaks tests |
59 |
+DEPEND="${RDEPEND} |
60 |
+ test? ( |
61 |
+ !!<dev-python/ndg-httpsclient-0.4.2-r1 |
62 |
+ dev-libs/openssl:0 |
63 |
+ sys-libs/libfaketime |
64 |
+ )" |
65 |
+ |
66 |
+distutils_enable_tests unittest |
67 |
+ |
68 |
+src_test() { |
69 |
+ # bundled certificates expired, so we need a time machine |
70 |
+ local -x FAKETIME="@2019-12-01 12:00:00" |
71 |
+ local -x LD_PRELOAD="libfaketime.so:${LD_PRELOAD}" |
72 |
+ |
73 |
+ # we need to start a fake https server for tests to connect to |
74 |
+ ( cd ndg/httpsclient/test && sh ./scripts/openssl_https_server.sh ) & |
75 |
+ local server_pid=${!} |
76 |
+ |
77 |
+ distutils-r1_src_test |
78 |
+ |
79 |
+ kill "${server_pid}" |
80 |
+ wait |
81 |
+} |