# -*- 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.1
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  314d30e5311733411231b778d08f38a202aea330 \
                    sha256  df3e6b70f3192e92623128123ec8dca3067df9cfadd43d59681e210cfb8d4682 \
                    size    137801

python.versions     312 313
python.pep517_backend hatch

if {${name} ne ${subport}} {
    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}
    }
}
