# -*- 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             2.11.1
platforms           darwin
license             MIT
maintainers         nomaintainer

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

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

checksums           rmd160  e084c33a5c4e8ba2ad47cfac68ccb3bfeee830de \
                    sha256  33243c1cbfcb9736a06c6db22dd08876b5f297e6344aa272a2862c0f8e669f64 \
                    size    38781

python.versions     37 38 39

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

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

    livecheck.type  none
}
