# -*- 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 pynvim 0.6.0
github.tarball_from archive
revision            1
name                py-neovim

maintainers         {judaew @judaew} 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.
license             Apache-2

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  c1eca212c711f3efe0ae3745018699e219d0e48e \
                    sha256  6649d630ce4a94007fe69a8debb010c7b185057f36d61576d2542c90f3c8db99 \
                    size    63033

python.versions     310 311 312 313 314

if { ${name} ne ${subport} } {
    depends_lib-append  port:py${python.version}-msgpack \
                        port:py${python.version}-greenlet

    if {${python.version} < 312} {
        depends_lib-append \
                    port:py${python.version}-typing_extensions
    }

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

    test.run            yes
}
