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

supported_archs     noarch
platforms           {darwin any}
license             Apache-2
maintainers         {judaew @judaew} openmaintainer

description         \
    Pythonic generic implementation of the Language Server Protocol
long_description    \
    pygls (pronounced like \"pie glass\") is a pythonic generic implementation \
    of the Language Server Protocol for use as a foundation for writing \
    language servers using Python (e.g. Python, XML, etc.). It allows you to \
    write your own language server in just a few lines of code.
homepage            https://github.com/openlawlibrary/pygls

checksums           rmd160  2f8e2920e6c275175f855701b6da136b11b672e9 \
                    sha256  140edceefa0da0e9b3c533547c892a42a7d2fd9217ae848c330c53d266a55018 \
                    size    45527

python.pep517_backend   poetry
python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_run-append      port:py${python.version}-lsprotocol \
                            port:py${python.version}-typeguard \
                            port:py${python.version}-typing_extensions

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

    test.run                yes
}
