# -*- 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-pylsqpack
version             0.3.20
revision            0
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         pylsqpack is a wrapper around the ls-qpack library.
long_description    {*}${description} It provides Python Decoder and Encoder objects \
                    to read or write HTTP/3 headers compressed with QPACK.
homepage            https://github.com/aiortc/pylsqpack

checksums           rmd160  acf9e1e27bf798d7b6dd6094085b53fff33530c8 \
                    sha256  e2d8128ef1f455c198ce8ead9d70f8aca92533a6ea513481f1e5eb546a2bb834 \
                    size    676273

python.versions     39 310 311 312 313

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

    depends_lib-append  \
                    port:ls-qpack

    # error: #pragma GCC diagnostic not allowed inside functions
    compiler.blacklist-append \
                    *gcc-4.0 *gcc-4.2
}
