mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-31 04:23:38 +01:00
mitmproxy: push to Gentoo after 3 years, https://bugs.gentoo.org/572170
This commit is contained in:
parent
513a67c3a9
commit
51b35bc2fe
3 changed files with 0 additions and 163 deletions
|
|
@ -1 +0,0 @@
|
||||||
DIST mitmproxy-4.0.4.tar.gz 27131713 BLAKE2B 2748b0f3b66e1f5840aae792a1b4cd8ef8efa3673fa24bc0c3e15474b36d68c0f6b2203cf629b6444545b8c6223752232b2ce8526290fe5d74916946e8917a03 SHA512 e08ea8b1c75a95b822c463625509037bbc8a979161cacaa1f0185f98df8d6d7e5400925365dbbe70d18751251b1005824f739a8cd035c0389f7b4aea562adfb3
|
|
||||||
|
|
@ -1,79 +0,0 @@
|
||||||
# Copyright 1999-2018 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_6 )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
|
|
||||||
HOMEPAGE="http://mitmproxy.org/"
|
|
||||||
SRC_URI="https://github.com/mitmproxy/mitmproxy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="doc examples test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/blinker-1.4[${PYTHON_USEDEP}] <dev-python/blinker-1.5
|
|
||||||
>=dev-python/brotlipy-0.7.0[${PYTHON_USEDEP}] <dev-python/brotlipy-0.8
|
|
||||||
>=dev-python/certifi-2015.11.20.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/click-6.2[${PYTHON_USEDEP}] <dev-python/click-7
|
|
||||||
>=dev-python/cryptography-2.1.4[${PYTHON_USEDEP}] <dev-python/cryptography-2.4
|
|
||||||
>=dev-python/hyper-h2-3.0[${PYTHON_USEDEP}] <dev-python/hyper-h2-4
|
|
||||||
>=dev-python/hyperframe-5.1.0[${PYTHON_USEDEP}] <dev-python/hyperframe-6
|
|
||||||
>=dev-python/kaitaistruct-0.7[${PYTHON_USEDEP}] <dev-python/kaitaistruct-0.9
|
|
||||||
>=dev-python/ldap3-2.5[${PYTHON_USEDEP}] <dev-python/ldap3-2.6
|
|
||||||
>=dev-python/passlib-1.6.5[${PYTHON_USEDEP}] <dev-python/passlib-1.8
|
|
||||||
>=dev-python/protobuf-python-3.5.0[${PYTHON_USEDEP}] <dev-python/protobuf-python-3.7
|
|
||||||
>=dev-python/pyasn1-0.3.1[${PYTHON_USEDEP}] <dev-python/pyasn1-0.5
|
|
||||||
>=dev-python/pyopenssl-17.5[${PYTHON_USEDEP}] <dev-python/pyopenssl-18.1
|
|
||||||
>=dev-python/pyparsing-2.1.3[${PYTHON_USEDEP}] <dev-python/pyparsing-2.3
|
|
||||||
>=dev-python/pyperclip-1.6.0[${PYTHON_USEDEP}] <dev-python/pyperclip-1.7
|
|
||||||
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}] <dev-python/requests-3
|
|
||||||
>=dev-python/ruamel-yaml-0.13.2[${PYTHON_USEDEP}] <dev-python/ruamel-yaml-0.16
|
|
||||||
>=dev-python/sortedcontainers-1.5.4[${PYTHON_USEDEP}] <dev-python/sortedcontainers-2.1
|
|
||||||
>=www-servers/tornado-4.3[${PYTHON_USEDEP}] <www-servers/tornado-5.2
|
|
||||||
>=dev-python/urwid-2.0.1[${PYTHON_USEDEP}] <dev-python/urwid-2.1
|
|
||||||
>=dev-python/wsproto-0.11.0[${PYTHON_USEDEP}] <dev-python/wsproto-0.12.0
|
|
||||||
|
|
||||||
examples? ( dev-python/beautifulsoup:4[${PYTHON_USEDEP}] <dev-python/beautifulsoup-4.7:4 )
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
test? (
|
|
||||||
>=dev-python/asynctest-0.12.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/flake8-3.5[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/flask-1.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/mypy-0.590[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-asyncio-0.8[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-cov-2.5.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-faulthandler-1.3.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-timeout-1.2.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-xdist-1.22[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-3.3[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/rstcheck-2.2[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
doc? ( dev-python/sphinx dev-python/sphinxcontrib-documentedlist )"
|
|
||||||
#fixme: bump it too
|
|
||||||
# =www-servers/pathod-$(get_version_component_range 1-2)*[${PYTHON_USEDEP}]
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
cd test/mitmproxy/addons
|
|
||||||
#tests require python3.6
|
|
||||||
"${EPYTHON}" /usr/bin/pytest -v
|
|
||||||
}
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use doc && emake -C docs html
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
local DOCS=( CHANGELOG README.rst )
|
|
||||||
use doc && local HTML_DOCS=( docs/_build/html. )
|
|
||||||
use examples && local EXAMPLES=( examples/. )
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
}
|
|
||||||
|
|
@ -1,83 +0,0 @@
|
||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_6 )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
|
|
||||||
HOMEPAGE="http://mitmproxy.org/"
|
|
||||||
SRC_URI="https://github.com/mitmproxy/mitmproxy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/blinker-1.4[${PYTHON_USEDEP}] <dev-python/blinker-1.5
|
|
||||||
>=dev-python/brotlipy-0.7.0[${PYTHON_USEDEP}] <dev-python/brotlipy-0.8
|
|
||||||
>=dev-python/certifi-2015.11.20.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/click-6.2[${PYTHON_USEDEP}] <dev-python/click-7
|
|
||||||
>=dev-python/cryptography-2.1.4[${PYTHON_USEDEP}] <dev-python/cryptography-2.4
|
|
||||||
>=dev-python/hyper-h2-3.0[${PYTHON_USEDEP}] <dev-python/hyper-h2-4
|
|
||||||
>=dev-python/hyperframe-5.1.0[${PYTHON_USEDEP}] <dev-python/hyperframe-6
|
|
||||||
>=dev-python/kaitaistruct-0.7[${PYTHON_USEDEP}] <dev-python/kaitaistruct-0.9
|
|
||||||
>=dev-python/ldap3-2.5[${PYTHON_USEDEP}] <dev-python/ldap3-2.6
|
|
||||||
>=dev-python/passlib-1.6.5[${PYTHON_USEDEP}] <dev-python/passlib-1.8
|
|
||||||
>=dev-python/protobuf-python-3.5.0[${PYTHON_USEDEP}] <dev-python/protobuf-python-3.7
|
|
||||||
>=dev-python/pyasn1-0.3.1[${PYTHON_USEDEP}] <dev-python/pyasn1-0.5
|
|
||||||
>=dev-python/pyopenssl-17.5[${PYTHON_USEDEP}] <dev-python/pyopenssl-18.1
|
|
||||||
>=dev-python/pyparsing-2.1.3[${PYTHON_USEDEP}] <dev-python/pyparsing-2.3
|
|
||||||
>=dev-python/pyperclip-1.6.0[${PYTHON_USEDEP}] <dev-python/pyperclip-1.7
|
|
||||||
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}] <dev-python/requests-3
|
|
||||||
>=dev-python/ruamel-yaml-0.13.2[${PYTHON_USEDEP}] <dev-python/ruamel-yaml-0.16
|
|
||||||
>=dev-python/sortedcontainers-1.5.4[${PYTHON_USEDEP}] <dev-python/sortedcontainers-2.1
|
|
||||||
>=www-servers/tornado-4.3[${PYTHON_USEDEP}] <www-servers/tornado-5.2
|
|
||||||
>=dev-python/urwid-2.0.1[${PYTHON_USEDEP}] <dev-python/urwid-2.1
|
|
||||||
>=dev-python/wsproto-0.11.0[${PYTHON_USEDEP}] <dev-python/wsproto-0.12.0
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
>=dev-python/flask-1.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/parver-0.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-3.3[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
# loosen dependencies
|
|
||||||
sed -i '/>/s/>.*/",/g' setup.py || die
|
|
||||||
|
|
||||||
# remove failing tests
|
|
||||||
sed -e 's/test_iframe_injector/_&/g' \
|
|
||||||
-i test/examples/test_examples.py || die
|
|
||||||
|
|
||||||
sed -e 's/test_find_unclaimed_URLs/_&/g' \
|
|
||||||
-i test/examples/test_xss_scanner.py || die
|
|
||||||
|
|
||||||
rm test/mitmproxy/addons/test_readfile.py || die
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e 's/test_mode_none_should_pass_without_sni/_&/g' \
|
|
||||||
-e 's/test_mode_strict_w_pemfile_should_pass/_&/g' \
|
|
||||||
-e 's/test_mode_strict_w_confdir_should_pass/_&/g' \
|
|
||||||
-i test/mitmproxy/net/test_tcp.py || die
|
|
||||||
|
|
||||||
sed \
|
|
||||||
-e 's/test_verification_w_confdir/_&/g' \
|
|
||||||
-e 's/test_verification_w_pemfile/_&/g' \
|
|
||||||
-i test/mitmproxy/proxy/test_server.py || die
|
|
||||||
|
|
||||||
# needs pytest-asyncio
|
|
||||||
rm test/mitmproxy/tools/test_main.py || die
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
pytest -vv || die
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue