# -*- 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-anyio
version             4.12.1
revision            0
categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         AnyIO is a asynchronous compatibility API
long_description    {*}${description}

homepage            https://github.com/agronholm/anyio

checksums           rmd160  2541b84f873fa5ff3afe866f396a42beeb2d49f4 \
                    sha256  41cfcc3a4c85d3f05c932da7c26d0201ac36f72abd4435ba90d0464a3ffed703 \
                    size    228685

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

    depends_lib-append  port:py${python.version}-idna \
                        port:py${python.version}-sniffio

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

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

