# -*- 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-jh2
version             5.0.13
revision            0
categories-append   net www devel
platforms           any
license             MIT
maintainers         nomaintainer
description         HTTP/2 State-Machine-based protocol implementation
long_description    {*}${description}
homepage            https://github.com/jawah/h2
checksums           rmd160  269ee719469776830fe64fc24c3739020ee8dac2 \
                    sha256  f8c78cffb3a35c4410513c3eb7989de36028c84277c04f07c97909dd94c23a75 \
                    size    7322505
supported_archs     noarch

python.versions         310 311 312 313 314

python.pep517_backend   hatch

if {${subport} ne ${name}} {
    # https://github.com/jawah/h2/issues/36
    post-extract {
        delete -f ${worksrcpath}/pyproject.toml
        copy ${worksrcpath}/pyproject.fb.toml ${worksrcpath}/pyproject.toml
    }
}
