# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        python-hyper hpack 4.1.0 v
github.tarball_from archive
name                py-hpack
revision            0

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

description         Pure-Python HPACK header compression
long_description    \
    This module contains a pure-Python HTTP/2 header encoding (HPACK) \
    logic for use in Python programs that implement HTTP/2. It also \
    contains a compatibility layer that automatically enables the use \
    of nghttp2 if it is available.

homepage            https://python-hyper.org/hpack/

checksums           rmd160  97e17c3166c0359894d5541ac532c8f7bec5c708 \
                    sha256  d8e08ec703362fab42224f31e3eee0a73b8c6a28e1f05c1318feb2c54453abcf \
                    size    5303243

python.versions     310 311 312 313 314

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

    test.run        yes

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