# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup mitmproxy mitmproxy 4.0.4 v
name py-${github.project}
categories-append net www
license {GPL-3+ OpenSSLException}
maintainers {yan12125 @yan12125} {petr @petrrr} openmaintainer
description SSL-capable man-in-the-middle proxy for HTTP
mitmproxy is an SSL-capable man-in-the-middle proxy for HTTP. It provides \
a console interface that allows traffic flows to be inspected and edited \
on the fly. mitmdump is the command-line version of mitmproxy, with the \
same functionality but without the user interface. Think tcpdump for HTTP.
homepage https://mitmproxy.org/
checksums md5 d9f58513ab46777b60c15bff52a2239b \
rmd160 6532da521d55dffa508123831113b41252c03c3e \
sha256 313c6aa2e801b3743a1fad57fdf6f1e8b001ea3a7a7744394fc48cc3f9512553 \
# update_certs: https://github.com/mitmproxy/mitmproxy/issues/3316
# wsproto0.13: https://github.com/mitmproxy/mitmproxy/pull/3459
# pytest4: https://github.com/mitmproxy/mitmproxy/pull/3403
# mojave: https://github.com/mitmproxy/mitmproxy/pull/3437
# The onboarding addon is incompatible with Tornado 6.x
patchfiles update-certs.patch \
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
depends_lib-append port:py${python.version}-asn1 \
port:py${python.version}-blinker \
port:py${python.version}-brotlipy \
port:py${python.version}-click \
port:py${python.version}-certifi \
port:py${python.version}-cryptography \
port:py${python.version}-h2 \
port:py${python.version}-hyperframe \
port:py${python.version}-kaitaistruct \
port:py${python.version}-ldap3 \
port:py${python.version}-openssl \
port:py${python.version}-parsing \
port:py${python.version}-passlib \
port:py${python.version}-pyperclip \
port:py${python.version}-ruamel-yaml \