# -*- 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-sqlalchemy
version             3.1.1
revision            0

categories-append   www
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {aronnax @lpsinger} openmaintainer

description         Flask support for SQLAlchemy
long_description    \
    Flask-SQLAlchemy is an extension for Flask that adds support for SQLAlchemy \
    to your application. It requires SQLAlchemy 0.6 or higher. It aims to \
    simplify using SQLAlchemy with Flask by providing useful defaults and extra \
    helpers that make it easier to accomplish common tasks.

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

distname            flask_sqlalchemy-${version}

checksums           rmd160  49d159280aebd5dcfe0b53a1ae898867a65d8c1e \
                    sha256  e4b68bb881802dda1a7d878b2fc84c06d1ee57fb40b874d3dc97dabfa36b8312 \
                    size    81899

python.versions     312 313
python.pep517_backend flit

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

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
}
