# -*- 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-qh3
version             2.0.4
revision            0
categories-append   net
homepage            https://github.com/jawah/qh3
license             MIT 
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         lightway and fast implementation of QUIC and HTTP/3
long_description    ${name} is a {*}${description}, a maintained fork of the aioquic library.

checksums           rmd160  883067ef69359c109acceb63e3e8346c644fa344 \
                    sha256  72b174c9dabfccdddf050dabc3c1b49972ed7a7564896d3db558e57376187f75 \
                    size    380633

python.versions     313 314
python.pep517_backend \
                    maturin

if {${name} ne ${subport}} {
    depends_build-append \
                    port:cmake

    post-patch {
        # relax maturin version req
        reinplace "s|\"maturin\[<>\].*\"|\"maturin\"|g" pyproject.toml
    }
}
