fix(mitmproxy): Use mitmproxy 7.0.4 for Python 3.11 compatibility

mitmproxy 8.x has dataclass compatibility issues with Python 3.11
in the grpc contentviews module.

Bump release to r6.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-01-17 08:04:18 +01:00
parent 0afdfc5b78
commit 6553edba3a
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-mitmproxy
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_VERSION:=0.4.0
PKG_ARCH:=all
PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr>

View File

@ -327,10 +327,11 @@ apk add --no-cache \
libffi-dev \
openssl-dev
# Install mitmproxy 8.1.1 (last pure-Python version without any Rust dependencies)
# Install mitmproxy 7.0.4 (compatible with Python 3.11 dataclasses)
# 8.x has grpc dataclass issues with Python 3.11
# 9.x requires mitmproxy-wireguard (Rust), 10.x requires mitmproxy_rs (Rust)
# Pin werkzeug<3.0 for Flask compatibility (url_quote removed in 3.0)
pip3 install --break-system-packages 'werkzeug<3.0' 'mitmproxy==8.1.1'
pip3 install --break-system-packages 'werkzeug<3.0' 'mitmproxy==7.0.4'
# Clean up build dependencies to save space
apk del build-base python3-dev libffi-dev openssl-dev