# -*- 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-aioquic
version             1.7.1
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         aioquic is a library for the QUIC network protocol in Python.
long_description    {*}${description}  It features a minimal TLS 1.3 implementation, \
                    a QUIC stack and an HTTP/3 stack.
homepage            https://github.com/aiortc/aioquic

checksums           rmd160  8fbca0b8ae1356c2953a84f1234721b3d2d846af \
                    sha256  3d7fca2e2d2a99948e515830270fa3378f01fe7d11e5a16e2bed3fefdad194c0 \
                    size    230281

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append  \
                    port:py${python.version}-certifi \
                    port:py${python.version}-cryptography \
                    port:py${python.version}-pylsqpack \
                    port:py${python.version}-openssl \
                    port:py${python.version}-service_identity

    if {${python.version} eq 310} {
        version     1.3.0
        revision    0

        checksums   rmd160  1c6cc5385b56bed0c83ad8d4af57e5a3a86dc285 \
                    sha256  28d070b2183e3e79afa9d4e7bd558960d0d53aeb98bc0cf0a358b279ba797c92 \
                    size    181923
    }
}
