# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        pavlov99 json-rpc 1.13.0
revision            0
name                py-json-rpc

categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         JSON-RPC 1/2 transport implementation
long_description    ${description}

checksums           rmd160  7a408468b7744ea1122795a8c6fef8a0c88b6d0a \
                    sha256  e6ccf1d45b1d7f528b702c29a664877ee3b4a8d8ab6145019ddc5d6c119148d3 \
                    size    43557

python.versions     27 35 36 37 38

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

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

    if {${python.version} == 27} {
        depends_test-append \
                    port:py${python.version}-mock
    }

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

    livecheck.type  none
}
