# -*- 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-typeguard
version             4.4.4
revision            0

platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Run time type checker for Python
long_description    {*}${description}

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

checksums           rmd160  22ea88fcf9106bd5aec0032feffb8c8f2fc8efdf \
                    sha256  3a7fd2dffb705d4d0efaed4306a704c89b9dee850b688f060a8b1615a79e5f74 \
                    size    75203

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}-typing_extensions

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