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

categories-append   devel
platforms           darwin
supported_archs     noarch
license             LGPL-2.1
maintainers         nomaintainer

description         websocket client for python
long_description    websocket-client module is WebSocket client for python

homepage            https://github.com/websocket-client/websocket-client
master_sites        pypi:w/${python.rootname}
distname            websocket_client-${version}

checksums           rmd160  cfed086c0f91d9bbe0aa0c32ceb1af887bab9cea \
                    sha256  63509b41d158ae5b7f67eb4ad20fecbb4eee99434e73e140354dc3ff8e09716f \
                    size    48216

python.versions     27 37 38 39

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

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

    if {${python.version} eq 27} {
        depends_test-append \
                    port:py${python.version}-backports-ssl_match_hostname
    }
    test.run        yes
    test.env        TEST_WITH_INTERNET=1

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

    livecheck.type  none
}
