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

github.setup        neovim python-client 0.2.6
name                py-neovim
maintainers         {g5pw @g5pw} openmaintainer
description         Python client for Neovim
long_description    ${description}. Implements support for python plugins in \
                    Nvim. Also works as a library for connecting to and \
                    scripting Nvim processes through its msgpack-rpc API.
platforms           darwin
license             Apache-2

supported_archs     noarch

python.versions     27 35 36 37

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

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

    if { ${python.version} == 27 } {
        depends_lib-append  port:py${python.version}-trollius
    }

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

    checksums           rmd160  5ff811cafcd018996960b530d958ed6535100e75 \
                        sha256  f73a62b702b89000900ce1dda8e7c8592f0eb069d69c573ebc4eb62e6d1d3f5d \
                        size    50169

    test.run            yes
    test.cmd            py.test-${python.branch}
    test.target

    livecheck.type      none
}