# -*- 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-wsproto
version             1.0.0
revision            0

categories-append   net www
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         WebSockets state-machine based protocol implementation
long_description    {*}${description}

homepage            https://github.com/python-hyper/wsproto

checksums           rmd160  75d221dfd371b1a4490b80dde90b778c00e50440 \
                    sha256  868776f8456997ad0d9720f7322b746bbe9193751b5b290b7f924659377c8c38 \
                    size    53423

python.versions     37 38 39

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

    depends_lib-append      port:py${python.version}-h11

    depends_test-append     port:py${python.version}-pytest

    test.env                PYTHONPATH=${worksrcpath}/build/lib
    test.run                yes
    test.cmd                py.test-${python.branch}
    test.target

    livecheck.type  none
}
