# -*- 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-websocket-client
python.rootname     websocket_client
version             1.9.0
revision            0

categories-append   devel
license             LGPL-2.1
maintainers         nomaintainer

description         WebSocket client for Python with low level API options
long_description    websocket-client is a WebSocket client for Python. It provides \
                    access to low level APIs for WebSockets. websocket-client implements \
                    version hybi-13 of the WebSocket procotol. This client does not currently \
                    support the permessage-deflate extension from RFC 7692.
homepage            https://websocket-client.readthedocs.io/

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  21cebe24ac88e337db6a5303109517751cbd2a04 \
                    sha256  9e813624b6eb619999a97dc7958469217c3176312b3a16a4bd1bc7e08a46ec98 \
                    size    70576

python.versions     39 310 311 312 313

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

    test.run        yes

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