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

description         Simple integration of Flask and WTForms
long_description    \
    Flask-WTF offers simple integration with WTForms. This integration includes \
    optional CSRF handling for greater security.

distname            flask_wtf-${version}

homepage            https://flask-wtf.readthedocs.io

checksums           rmd160  d3e860b5e03fc42471e66f44e5c8240486445967 \
                    sha256  61d5dabc50c3df885c297dcbd80810443a5d632106c8a69cab8ce740f0cdd7cc \
                    size    50414

python.versions     312 313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-flask \
                    port:py${python.version}-wtforms \
                    port:py${python.version}-itsdangerous

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