# -*- 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-wtforms
version             3.2.2
revision            0
categories-append   devel www
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         Form validation and rendering for Python web development
long_description    {*}${description}

homepage            https://wtforms.readthedocs.io

checksums           rmd160  19158984b84b9af848e7dbccd97c2f15c2d2f7ba \
                    sha256  7b00c73f8670f35d4edb0293dcd81b980528bee72fd662b182aaba27ae570b93 \
                    size    139583

python.versions     312 313 314
python.pep517_backend hatch

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

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

    test.run        yes

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