# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-mitmproxy_rs
version             0.11.2
revision            0

license             MIT
maintainers         nomaintainer
supported_archs     arm64 x86_64

description         "Rust bits" for Mitmproxy
long_description    {*}${description}, most notably WireGuard Mode and Local Redirect Mode.

homepage            https://mitmproxy.org/

master_sites        https://files.pythonhosted.org/packages/0a/b9/fc824f3c05a88b371997160968a91ebe64ea3b1f4b0e68a3443f395f3b59/
distname            mitmproxy_rs-${version}-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2

checksums           rmd160  3b052ed68a153a2955e2d6785f008d052f53cc37 \
                    sha256  fa26b9abf8a126e0ec442aac676996f9f90c3a40926621611cf3f09764c4a7ec \
                    size    3721203

extract.suffix      .whl
extract.only

python.versions     310 311 312 313

build               {}

destroot.target     ${distpath}/${distfiles}

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-mitmproxy_macos
}
