# -*- 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-hyperframe
version             6.1.0
revision            0

categories-append   net www
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         HTTP/2 framing layer for Python
long_description    \
    This library contains the HTTP/2 framing code used in the hyper project. \
    It provides a pure-Python codebase that is capable of decoding a binary \
    stream into HTTP/2 frames. \
    This library is used directly by hyper and a number of other projects to \
    provide HTTP/2 frame decoding logic.

homepage            https://python-hyper.org

checksums           rmd160  59cef4e86b183409ec7f17b8fbae8b444247e657 \
                    sha256  f630908a00854a7adeabd6382b43923a4c4cd4b821fcb527e6ab9e15382a3b08 \
                    size    26566

python.versions     39 310 311 312 313 314

if {${name} ne ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst CONTRIBUTORS.rst \
            LICENSE ${destroot}${docdir}
    }

    test.run        yes
}
