Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/mitmproxy/
Date: Thu, 16 Sep 2021 20:23:26
Message-Id: 1631823763.04de47487bd4cd8a6af9adaa0945e0fb3aebcb01.ionen@gentoo
1 commit: 04de47487bd4cd8a6af9adaa0945e0fb3aebcb01
2 Author: Matt Smith <matt <AT> offtopica <DOT> uk>
3 AuthorDate: Sat Sep 11 08:25:32 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 16 20:22:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04de4748
7
8 net-proxy/mitmproxy: Drop old
9
10 Package-Manager: Portage-3.0.23, Repoman-3.0.3
11 Signed-off-by: Matt Smith <matt <AT> offtopica.uk>
12 Closes: https://github.com/gentoo/gentoo/pull/22269
13 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
14
15 net-proxy/mitmproxy/Manifest | 2 -
16 net-proxy/mitmproxy/mitmproxy-6.0.2.ebuild | 93 ------------------------------
17 net-proxy/mitmproxy/mitmproxy-7.0.0.ebuild | 70 ----------------------
18 3 files changed, 165 deletions(-)
19
20 diff --git a/net-proxy/mitmproxy/Manifest b/net-proxy/mitmproxy/Manifest
21 index 0775b501ed2..3baedc6f444 100644
22 --- a/net-proxy/mitmproxy/Manifest
23 +++ b/net-proxy/mitmproxy/Manifest
24 @@ -1,4 +1,2 @@
25 -DIST mitmproxy-6.0.2.tar.gz 27274682 BLAKE2B 146fc4cd376e4ff02d13bf168b26868c5a33b47b30e678fb6d97df36c4b8ec9e8b9ca6e864e56c3943b231a2f2745c1abd7c58814ddf712113c2a20704a6964f SHA512 27eb5e9736891148b5ebec963a2d18de6a69b44428538d2ed1cf9a1dcdd7cbcdeeed662edb2d25521098374e2f9a29b5bb8fba8da4f77ac0d32bf7881ac70d61
26 -DIST mitmproxy-7.0.0.tar.gz 27308204 BLAKE2B bea89db0dd39a8b3bd516d2e7c2868d4c226afdc78974ce0f88c055fcb4f907e398922c725cd93d344450e3e7e107c23c63ef6a60d19bff48400f6eeb4d0af0a SHA512 3836a33e5d2be09fb89987d2b0b898183dab9f17b990b98ab754d07cc5d7275786cfac0ab946e65a099ece054c7bbd65d62d01e4e4281e5f9b5f3dcdd0ac80b4
27 DIST mitmproxy-7.0.2.tar.gz 27310814 BLAKE2B 294aad79f45b997d58c7c4cc869ccfedebe0e4fe72887679f942bf2eba37e2bcf5fff1922023bfd74b5ff46f7e62906a2ffaf99c4c59000f6d9d67fbcb68afdc SHA512 1335c868c93adc414fa84678b0ca7989aa7cf33906e220cf62cb5c57d17b57fe0e04143179a8d8033a312521f24654de040732416c5bed77f66591a2fe708c02
28 DIST mitmproxy-7.0.3.tar.gz 27311502 BLAKE2B a55f8a43cc052e342a0630fdd80fc713be7ce3db7b3899ccce79cfcd385345b7ebe8480c618c626d63e851d92f528a350d614ac3c7dfb85b01a555389d914ff7 SHA512 cffbb60421724fa28aab69b3bf1100e0aa5ab6e8933186f5706eb4eee35ef0f716616001156dac07921c73024e6ad8b98499a273575c592bb7694c0dffb728da
29
30 diff --git a/net-proxy/mitmproxy/mitmproxy-6.0.2.ebuild b/net-proxy/mitmproxy/mitmproxy-6.0.2.ebuild
31 deleted file mode 100644
32 index 03adf19a050..00000000000
33 --- a/net-proxy/mitmproxy/mitmproxy-6.0.2.ebuild
34 +++ /dev/null
35 @@ -1,93 +0,0 @@
36 -# Copyright 1999-2021 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -DISTUTILS_USE_SETUPTOOLS=rdepend
42 -PYTHON_COMPAT=( python3_{8,9} )
43 -PYTHON_REQ_USE="sqlite"
44 -inherit distutils-r1
45 -
46 -DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
47 -HOMEPAGE="https://mitmproxy.org/"
48 -SRC_URI="https://github.com/mitmproxy/mitmproxy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 -
50 -LICENSE="MIT"
51 -SLOT="0"
52 -KEYWORDS="amd64 ~arm64 ~x86"
53 -IUSE="test"
54 -
55 -RDEPEND="
56 - >=app-arch/brotli-1.0.0[python,${PYTHON_USEDEP}]
57 - >=dev-python/asgiref-3.2.10[${PYTHON_USEDEP}]
58 - >=dev-python/blinker-1.4[${PYTHON_USEDEP}]
59 - >=dev-python/certifi-2015.11.20.1[${PYTHON_USEDEP}]
60 - >=dev-python/click-7.0[${PYTHON_USEDEP}]
61 - >=dev-python/cryptography-3.3[${PYTHON_USEDEP}]
62 - >=dev-python/flask-1.1.1[${PYTHON_USEDEP}]
63 - >=dev-python/hyper-h2-4.0.0[${PYTHON_USEDEP}]
64 - >=dev-python/hyperframe-6.0.0[${PYTHON_USEDEP}]
65 - >=dev-python/kaitaistruct-0.7[${PYTHON_USEDEP}]
66 - >=dev-python/ldap3-2.8[${PYTHON_USEDEP}]
67 - >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
68 - >=dev-python/passlib-1.6.5[${PYTHON_USEDEP}]
69 - >=dev-python/protobuf-python-3.14.0[${PYTHON_USEDEP}]
70 - >=dev-python/publicsuffix-2.20190205[${PYTHON_USEDEP}]
71 - >=dev-python/pyasn1-0.3.1[${PYTHON_USEDEP}]
72 - >=dev-python/pyopenssl-20.0[${PYTHON_USEDEP}]
73 - >=dev-python/pyparsing-2.4.2[${PYTHON_USEDEP}]
74 - >=dev-python/pyperclip-1.6.0[${PYTHON_USEDEP}]
75 - >=dev-python/ruamel-yaml-0.16[${PYTHON_USEDEP}]
76 - >=dev-python/sortedcontainers-2.3.0[${PYTHON_USEDEP}]
77 - >=www-servers/tornado-4.3[${PYTHON_USEDEP}]
78 - >=dev-python/urwid-2.1.1[${PYTHON_USEDEP}]
79 - >=dev-python/wsproto-1.0.0[${PYTHON_USEDEP}]
80 - >=dev-python/zstandard-0.11.0[${PYTHON_USEDEP}]
81 - dev-libs/openssl:0
82 -"
83 -
84 -DEPEND="${RDEPEND}
85 - test? (
86 - >=dev-python/hypothesis-4.50.8[${PYTHON_USEDEP}]
87 - >=dev-python/parver-0.1[${PYTHON_USEDEP}]
88 - >=dev-python/pytest-3.3[${PYTHON_USEDEP}]
89 - >=dev-python/pytest-asyncio-0.10.0[${PYTHON_USEDEP}]
90 - >=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
91 - >=dev-python/zstandard-0.8.1[${PYTHON_USEDEP}]
92 - )"
93 -
94 -RESTRICT="!test? ( test )"
95 -
96 -distutils_enable_tests pytest
97 -
98 -python_prepare_all() {
99 - # loosen dependencies
100 - sed -i \
101 - -e '/>/s/>.*/",/g' \
102 - -e '/python_requires/d' \
103 - setup.py || die
104 -
105 - # remove failing test
106 - sed -i 's/test_get_version/_&/g' test/mitmproxy/test_version.py || die
107 -
108 - # https://github.com/mitmproxy/mitmproxy/issues/4136
109 - # https://bugs.gentoo.org/740336
110 - rm test/mitmproxy/addons/test_termlog.py || die
111 -
112 - # requires asynctest
113 - rm test/mitmproxy/addons/test_readfile.py || die
114 -
115 - # Passes with OpenSSL 1.1.1g, fails with OpenSSL 1.1.1h
116 - # https://github.com/gentoo/gentoo/pull/17411#discussion_r497270699
117 - sed \
118 - -e 's/test_mode_none_should_pass_without_sni/_&/g' \
119 - -e 's/test_mode_strict_w_pemfile_should_pass/_&/g' \
120 - -e 's/test_mode_strict_w_confdir_should_pass/_&/g' \
121 - -i test/mitmproxy/net/test_tcp.py || die
122 - sed \
123 - -e 's/test_verification_w_confdir/_&/g' \
124 - -e 's/test_verification_w_pemfile/_&/g' \
125 - -i test/mitmproxy/proxy/test_server.py || die
126 -
127 - distutils-r1_python_prepare_all
128 -}
129
130 diff --git a/net-proxy/mitmproxy/mitmproxy-7.0.0.ebuild b/net-proxy/mitmproxy/mitmproxy-7.0.0.ebuild
131 deleted file mode 100644
132 index 07d70bd2058..00000000000
133 --- a/net-proxy/mitmproxy/mitmproxy-7.0.0.ebuild
134 +++ /dev/null
135 @@ -1,70 +0,0 @@
136 -# Copyright 1999-2021 Gentoo Authors
137 -# Distributed under the terms of the GNU General Public License v2
138 -
139 -EAPI=8
140 -
141 -DISTUTILS_USE_SETUPTOOLS=rdepend
142 -PYTHON_COMPAT=( python3_{8,9} )
143 -PYTHON_REQ_USE="sqlite"
144 -inherit distutils-r1
145 -
146 -DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
147 -HOMEPAGE="https://mitmproxy.org/"
148 -SRC_URI="https://github.com/mitmproxy/mitmproxy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
149 -
150 -LICENSE="MIT"
151 -SLOT="0"
152 -KEYWORDS="amd64 ~arm64 ~x86"
153 -
154 -RDEPEND="
155 - >=app-arch/brotli-1.0.0[python,${PYTHON_USEDEP}]
156 - >=dev-python/asgiref-3.2.10[${PYTHON_USEDEP}]
157 - >=dev-python/blinker-1.4[${PYTHON_USEDEP}]
158 - >=dev-python/certifi-2015.11.20.1[${PYTHON_USEDEP}]
159 - >=dev-python/click-7.0[${PYTHON_USEDEP}]
160 - >=dev-python/cryptography-3.3[${PYTHON_USEDEP}]
161 - >=dev-python/flask-1.1.1[${PYTHON_USEDEP}]
162 - >=dev-python/hyper-h2-4.0.0[${PYTHON_USEDEP}]
163 - >=dev-python/hyperframe-6.0.0[${PYTHON_USEDEP}]
164 - >=dev-python/kaitaistruct-0.7[${PYTHON_USEDEP}]
165 - >=dev-python/ldap3-2.8[${PYTHON_USEDEP}]
166 - >=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
167 - >=dev-python/passlib-1.6.5[${PYTHON_USEDEP}]
168 - >=dev-python/protobuf-python-3.14.0[${PYTHON_USEDEP}]
169 - >=dev-python/publicsuffix-2.20190205[${PYTHON_USEDEP}]
170 - >=dev-python/pyasn1-0.3.1[${PYTHON_USEDEP}]
171 - >=dev-python/pyopenssl-20.0[${PYTHON_USEDEP}]
172 - >=dev-python/pyparsing-2.4.2[${PYTHON_USEDEP}]
173 - >=dev-python/pyperclip-1.6.0[${PYTHON_USEDEP}]
174 - >=dev-python/ruamel-yaml-0.16[${PYTHON_USEDEP}]
175 - >=dev-python/sortedcontainers-2.3.0[${PYTHON_USEDEP}]
176 - >=www-servers/tornado-4.3[${PYTHON_USEDEP}]
177 - >=dev-python/urwid-2.1.1[${PYTHON_USEDEP}]
178 - >=dev-python/wsproto-1.0.0[${PYTHON_USEDEP}]
179 - >=dev-python/zstandard-0.11.0[${PYTHON_USEDEP}]
180 - dev-libs/openssl:0
181 -"
182 -
183 -BDEPEND="
184 - test? (
185 - >=dev-python/hypothesis-5.8[${PYTHON_USEDEP}]
186 - >=dev-python/parver-0.1[${PYTHON_USEDEP}]
187 - >=dev-python/pytest-asyncio-0.10.0[${PYTHON_USEDEP}]
188 - >=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
189 - )
190 -"
191 -
192 -distutils_enable_tests pytest
193 -
194 -python_prepare_all() {
195 - # loosen dependencies
196 - sed -i \
197 - -e '/>/s/>.*/",/g' \
198 - -e '/python_requires/d' \
199 - setup.py || die
200 -
201 - # remove failing test
202 - sed -i 's/test_get_version/_&/g' test/mitmproxy/test_version.py || die
203 -
204 - distutils-r1_python_prepare_all
205 -}