# -*- 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-black
version             2.0.0
revision            1

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Black plugin for python-lsp-server
long_description    {*}${description}. Forked from pyls-black (https://github.com/rupert/pyls-black).

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

checksums           rmd160  d9d14de869cb581f720f121904d3298f64fd05be \
                    sha256  8286d2d310c566844b3c116b824ada6fccfa6ba228b1a09a0526b74c04e0805f \
                    size    12051

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-black \
                    port:py${python.version}-python-lsp-server \

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-tomli
    }
}
