# -*- 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.0.1
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  80fe234fb9d1f4260a4f83b66436002f79919c9e \
                    sha256  ae510046231dc8e9ecb1a6586f63d2347bf4c8905914aa84ba585ae85f28a914 \
                    size    25008

python.versions     39 310 311 312 313

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
}