# -*- 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-npe2
version             0.8.1
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         napari plugin refactor
long_description    {*}${description}
homepage            https://github.com/napari/npe2

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  2f6516e7a25fe4bc3687c7d9f36418a20f25b21d \
                    sha256  51afd432e5b0b2833d5e7506205f1d54411d5e00c5c94bf75c368c10bb7dd3eb \
                    size    122747

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

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

    depends_lib-append  \
                    port:py${python.version}-appdirs \
                    port:py${python.version}-platformdirs \
                    port:py${python.version}-psygnal \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-pydantic-extra-types \
                    port:py${python.version}-tomli-w \
                    port:py${python.version}-rich \
                    port:py${python.version}-typer \
                    port:py${python.version}-yaml

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