mitmproxy: back to Gentoo

This commit is contained in:
Anton Bolshakov 2022-05-23 11:26:21 +08:00
parent e138466909
commit 8624d76ecd
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
5 changed files with 0 additions and 125 deletions

View file

@ -1 +0,0 @@
DIST ldap3-2.8.1.tar.gz 961648 BLAKE2B d6cbc52512efbe4f6fe5e7d19ee2ce1af3e03a8d6d08d2235eeff0f00c61fd12583c4b9fb452206ba161961c3438d109fa106a50a0edc858c24f5cd6261b2561 SHA512 f37e76e1008c990290285a757def6fe70e227393fbbdf84eb1130d5fdfd17db724c544848cc424ca7831f8cc9e8d25407fc139981ebd10818064f588adbafebf

View file

@ -1,26 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..10} pypy3 )
inherit distutils-r1
DESCRIPTION="A strictly RFC 4511 conforming LDAP V3 pure Python client"
HOMEPAGE="
https://github.com/cannatag/ldap3/
https://pypi.org/project/ldap3/"
SRC_URI="https://github.com/cannatag/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
RDEPEND="
>=dev-python/pyasn1-0.4.8[${PYTHON_USEDEP}]
"
# tests require a ldap server and extra configuration
RESTRICT="test"
distutils_enable_tests nose

View file

@ -1 +0,0 @@
DIST mitmproxy-7.0.4.tar.gz 27312748 BLAKE2B a23db472adab33db615b0daa93694211450e8899885dc75601d40a4964cc505437db6a106622eb8051263db23280261134937b6567482dd584eed29cc592e42b SHA512 4224b44e609f84b974b5419c6ceb576845957968c786ee437bffb5fa5df685ce0712d5ef8c402d40c568406242f44692cc7f04037fadd19ecece8b112d73b7ae

View file

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>matt@offtopica.uk</email>
<name>Matt Smith</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription lang="en">
mitmproxy is your swiss-army knife for debugging,
testing, privacy measurements, and penetration
testing. It can be used to intercept, inspect, modify
and replay web traffic such as HTTP/1, HTTP/2,
WebSockets, or any other SSL/TLS-protected
protocols. You can prettify and decode a variety of
message types ranging from HTML to Protobuf, intercept
specific messages on-the-fly, modify them before they
reach their destination, and replay them to a client
or server later on.
</longdescription>
<upstream>
<remote-id type="github">mitmproxy/mitmproxy</remote-id>
<remote-id type="pypi">mitmproxy</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,69 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_REQ_USE="sqlite"
inherit distutils-r1
DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
HOMEPAGE="https://mitmproxy.org/"
SRC_URI="https://github.com/mitmproxy/mitmproxy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
RDEPEND="
>=app-arch/brotli-1.0.0[python,${PYTHON_USEDEP}]
>=dev-python/asgiref-3.2.10[${PYTHON_USEDEP}]
>=dev-python/blinker-1.4[${PYTHON_USEDEP}]
>=dev-python/certifi-2015.11.20.1[${PYTHON_USEDEP}]
>=dev-python/click-7.0[${PYTHON_USEDEP}]
>=dev-python/cryptography-3.3[${PYTHON_USEDEP}]
>=dev-python/flask-1.1.1[${PYTHON_USEDEP}]
>=dev-python/h2-4.0.0[${PYTHON_USEDEP}]
>=dev-python/hyperframe-6.0.0[${PYTHON_USEDEP}]
>=dev-python/kaitaistruct-0.7[${PYTHON_USEDEP}]
>=dev-python/ldap3-2.8[${PYTHON_USEDEP}]
>=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
>=dev-python/passlib-1.6.5[${PYTHON_USEDEP}]
>=dev-python/protobuf-python-3.14.0[${PYTHON_USEDEP}]
>=dev-python/publicsuffix-2.20190205[${PYTHON_USEDEP}]
>=dev-python/pyasn1-0.3.1[${PYTHON_USEDEP}]
>=dev-python/pyopenssl-20.0[${PYTHON_USEDEP}]
>=dev-python/pyparsing-2.4.2[${PYTHON_USEDEP}]
>=dev-python/pyperclip-1.6.0[${PYTHON_USEDEP}]
>=dev-python/ruamel-yaml-0.16[${PYTHON_USEDEP}]
>=dev-python/sortedcontainers-2.3.0[${PYTHON_USEDEP}]
>=www-servers/tornado-4.3[${PYTHON_USEDEP}]
>=dev-python/urwid-2.1.1[${PYTHON_USEDEP}]
>=dev-python/wsproto-1.0.0[${PYTHON_USEDEP}]
>=dev-python/zstandard-0.11.0[${PYTHON_USEDEP}]
dev-libs/openssl:0
"
BDEPEND="
test? (
>=dev-python/hypothesis-5.8[${PYTHON_USEDEP}]
>=dev-python/parver-0.1[${PYTHON_USEDEP}]
>=dev-python/pytest-asyncio-0.10.0[${PYTHON_USEDEP}]
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
# loosen dependencies
sed -i \
-e '/>/s/>.*/",/g' \
-e '/python_requires/d' \
setup.py || die
# remove failing test
sed -i 's/test_get_version/_&/g' test/mitmproxy/test_version.py || die
distutils-r1_python_prepare_all
}