PKGNAME=mitmproxy-rs
PKGSEC=net
PKGDEP="python-3"
BUILDDEP="maturin llvm-22 bpf-linker"
PKGDES="Interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers"

ABTYPE=self
NOPYTHON2=1

# FIXME: ImportError: /usr/lib/python3.14/site-packages/mitmproxy_rs/mitmproxy_rs.abi3.so: undefined symbol: tree_sitter_yaml
NOLTO=1

# FIXME: limited by aya-obj
# error[E0432]: unresolved import `crate::generated::btf_header`
#   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aya-obj-0.2.1/src/btf/btf.rs:23:33
#    |
# 23 |     generated::{btf_ext_header, btf_header},
#    |                                 ^^^^^^^^^^ no `btf_header` in `generated`
FAIL_ARCH="!(amd64|arm64)"

PKGBREAK="mitmproxy<=12.2.2+rs0.12.9"
PKGREP="mitmproxy<=12.2.2+rs0.12.9"
