# -*- 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.18
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  27cce1f717e83a34afe8d3ecb77dc071e25bef86 \
                    sha256  45ae55e721877505f4d5ccd49591d69353f2a548a8673dfafb251d385b3c097f \
                    size    659125

python.versions     38 39 310 311 312 313

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

    depends_lib-append  \
                    port:ls-qpack

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