# -*- 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.8.0
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
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/

checksums           rmd160  dbfb63499f3bf6aadc0da4551af24b8ab61f2155 \
                    sha256  3239df9f44da632f96012472805d40a23281a991027ce11d2f45a6f24ac4c3da \
                    size    54648

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}
    }
}