# -*- 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.2.2
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  d627a33a2a4a766f48879dd2523faacd9bf1370d \
                    sha256  79d2ee1e436cf570bccb7d916533fa18757a2f18c290accffab1b9a0b684666b \
                    size    42641

python.versions     312 313
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}
    }
}
