summaryrefslogtreecommitdiff
path: root/dev-python/ndg-httpsclient
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
commitceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (patch)
tree9f47ee47c31a0f13f9496879cd88a1042550aa81 /dev-python/ndg-httpsclient
parent53cba99042fa967e2a93da9f8db806fe2d035543 (diff)
gentoo (leap year) resync : 29.02.2020
Diffstat (limited to 'dev-python/ndg-httpsclient')
-rw-r--r--dev-python/ndg-httpsclient/Manifest6
-rw-r--r--dev-python/ndg-httpsclient/ndg-httpsclient-0.4.0.ebuild2
-rw-r--r--dev-python/ndg-httpsclient/ndg-httpsclient-0.4.2-r1.ebuild2
-rw-r--r--dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild49
4 files changed, 55 insertions, 4 deletions
diff --git a/dev-python/ndg-httpsclient/Manifest b/dev-python/ndg-httpsclient/Manifest
index dbcbff05e731..2bd3f1be3244 100644
--- a/dev-python/ndg-httpsclient/Manifest
+++ b/dev-python/ndg-httpsclient/Manifest
@@ -1,5 +1,7 @@
DIST ndg_httpsclient-0.4.0.tar.gz 24038 BLAKE2B 147ba36c966b2220c068ce3376bd84259807f66c57141fee4ed95457333cd9d568d19fd4d3348e7ef25d456e3f7d794f83f8302a15beb16f451aa02ef6181848 SHA512 3c0225a20c25cf0f12f03005bb79e738527c0488bb660c1eb3b55c505a0ef503002d37fcffb3d013e5f91101bdd03080a68d5805d6d29b682cc01bdc9f0e4a19
DIST ndg_httpsclient-0.4.2.tar.gz 25062 BLAKE2B 740075cf3031547028afa3ec2e005e5430e7fbb5c2bfd444e4051c60a9ac14ecacd3048f87f546516bddc4c0403738aa3ef227b3fd763a48bca28da09a47f707 SHA512 c7d6f442242ce01f69d2386b8ed41e4e5f72a2523ecbe38785c4333405f1b000e298133ccc4169d9685a3dcdcf0b20567c8e4b2dfd36f42721d36c73ee27d90a
-EBUILD ndg-httpsclient-0.4.0.ebuild 797 BLAKE2B 114cc9d20b84ec0919330441da6501ce50ef6526dbd9beb38ae6963814c3ea203b32bdc7bf09462c29f5811fc69e19e51d38c3c50ef1a3f0186e90c216e47af7 SHA512 39a2e7afab6c2d985897e650c3696201cbf2e0370ea0c569668201f2133bf8007d73b8ac52f92f49288b4e1684f81ab8f6d440e32355a9fd18222bb352beef90
-EBUILD ndg-httpsclient-0.4.2-r1.ebuild 1656 BLAKE2B 3625e426f0d4490b8f0b7a513879bbb65562dc9adb2d6d179921c17f619be446713829478f12aaf747a6e96cc273f634f502833df4cda2365e0dc5b15eedbd8f SHA512 21a5883444f24f8ba8d71f22f9489e5b77e763b631211cc3599698d94c7f865a3ce782f399718cea07022bdcd6824c777338f83f108f5ca6af15576a2462c52e
+DIST ndg_httpsclient-0.5.1.tar.gz 26665 BLAKE2B 1c7f0a8d41b945d2b2a51cd69397ab0943cb91e25013c931f055c5608bc3a0106a99d9b126e8caaac9f8d9b409ec117631fb23f19dfd3194b783548ce3536050 SHA512 b2b4c1b1df87ea1a94811b9ae831e7bf32af27258f487fd5ec319e0e6e0d79dfdb1f7bfadaf397d0693a8a7f0720df170a7fc946aaf10c82e3957ac5464f672e
+EBUILD ndg-httpsclient-0.4.0.ebuild 787 BLAKE2B 834d5a9e54f39561fa1999a8f317470680c5fdb0cea7bd86550ebd88040bc3db5eea624f31b5b142488f0d58b2e342a6909c4a166b3599ad515505998cffcb90 SHA512 04a8cc8281d293215f8f894e5c719aece764391182198c931a6527d10b5be61f70e70bfab69bcfb2d337fa3202675108f7dce8a3456eb4a98e22353ec7af4474
+EBUILD ndg-httpsclient-0.4.2-r1.ebuild 1646 BLAKE2B cbb77db68c57078b1294113153e4106002dd86a2bd47dc2eb4305d854d40bbf299e619003ea8ac7e4bbd15899e17fe6ea95ef63f938097d33b1ab4434a2b1a8c SHA512 73259967137b56aa1ae1cb75ef0e42cef804d947022a20553f6a27cbc4427905f366a1988bf9716e46eb4262edbbebfaf88051efe329f2ee3a33d2f67e50f6b2
+EBUILD ndg-httpsclient-0.5.1.ebuild 1236 BLAKE2B 0de4e9ad384177545443e9756932ce0bd3a79ab48982ecf50bb6dd98139cb27321c0a624c824126dc3c517502c41dd0df841fba94d86d244735efe6d65e28eec SHA512 0e02b417b139178bd5c9ab50b1bfda970ef134a26fae202e5a90e8477c61bef9f07e0ab79fe31a55bdec379ff7247cc361f750ba8a78dd23d4d715a3958d48c6
MISC metadata.xml 393 BLAKE2B bfb003be060fefbbdd7e46aafa06dba5c0207726a303b4d0794a115b2995bb65505ceda29ad37f0cf6d86a8f1c0521f14a004869ec8d8051e374bd11255e7266 SHA512 1092b2a6c3d9ed56cc6429ce9b1ffeb14f18934f2dc8dc9e34b28eb9a048304f31634fe2d7265a599afd338033605c831290b903e933e1a1634ed8fdbb1719ae
diff --git a/dev-python/ndg-httpsclient/ndg-httpsclient-0.4.0.ebuild b/dev-python/ndg-httpsclient/ndg-httpsclient-0.4.0.ebuild
index a96ed1a10945..6eafff557f9f 100644
--- a/dev-python/ndg-httpsclient/ndg-httpsclient-0.4.0.ebuild
+++ b/dev-python/ndg-httpsclient/ndg-httpsclient-0.4.0.ebuild
@@ -3,7 +3,7 @@
EAPI=5
-PYTHON_COMPAT=( python2_7 python3_6 pypy3 )
+PYTHON_COMPAT=( python3_6 pypy3 )
inherit distutils-r1
diff --git a/dev-python/ndg-httpsclient/ndg-httpsclient-0.4.2-r1.ebuild b/dev-python/ndg-httpsclient/ndg-httpsclient-0.4.2-r1.ebuild
index f63a67698c44..fe720e015ae6 100644
--- a/dev-python/ndg-httpsclient/ndg-httpsclient-0.4.2-r1.ebuild
+++ b/dev-python/ndg-httpsclient/ndg-httpsclient-0.4.2-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
+PYTHON_COMPAT=( python3_{6,7} pypy3 )
inherit distutils-r1
diff --git a/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild b/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild
new file mode 100644
index 000000000000..4ad33ed68364
--- /dev/null
+++ b/dev-python/ndg-httpsclient/ndg-httpsclient-0.5.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL"
+HOMEPAGE="
+ https://github.com/cedadev/ndg_httpsclient/
+ https://pypi.org/project/ndg-httpsclient/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/-/_}.tar.gz"
+S="${WORKDIR}/${P/-/_}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+RDEPEND="
+ dev-python/pyaes[${PYTHON_USEDEP}]
+ dev-python/pyopenssl[${PYTHON_USEDEP}]"
+# we need to block the previous versions since incorrect namespace
+# install breaks tests
+DEPEND="${RDEPEND}
+ test? (
+ !!<dev-python/ndg-httpsclient-0.4.2-r1
+ dev-libs/openssl:0
+ sys-libs/libfaketime
+ )"
+
+distutils_enable_tests unittest
+
+src_test() {
+ # bundled certificates expired, so we need a time machine
+ local -x FAKETIME="@2019-12-01 12:00:00"
+ local -x LD_PRELOAD="libfaketime.so:${LD_PRELOAD}"
+
+ # we need to start a fake https server for tests to connect to
+ ( cd ndg/httpsclient/test && sh ./scripts/openssl_https_server.sh ) &
+ local server_pid=${!}
+
+ distutils-r1_src_test
+
+ kill "${server_pid}"
+ wait
+}