# -*- 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-python-lsp-jsonrpc
version             1.1.2
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         A Python server implementation of the JSON RPC 2.0 protocol
long_description    Fork of the python-jsonrpc-server project, maintained by the Spyder \
                    IDE team and the community.

homepage            https://github.com/python-lsp/python-lsp-jsonrpc

checksums           rmd160  f8620be2f352bb01ef2d1300791cb87e572f336d \
                    sha256  4688e453eef55cd952bff762c705cedefa12055c0aec17a06f595bcc002cc912 \
                    size    15298

python.versions     310 311 312 313 314

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

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

    test.run            yes
    depends_test-append port:py${python.version}-mock

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