# -*- 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             1.9.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  e819a3b529ff038812a7f57fef42f98c6accf97b \
                    sha256  bd2ea9baf19656c544a48a56a195f2ac257cd973b566f5f2998fa3b7446281a1 \
                    size    346724

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
    }
}
