# -*- 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-flexparser
version             0.4
revision            1

license             Permissive
maintainers         {mps @Schamschula} openmaintainer
description         Another parser.
long_description    {*}${description} You write a class for every type of content \
                    (called here ParsedStatement) you need to parse. Each class should \
                    have a from_string constructor. We used extensively the typing \
                    module to make the output structure easy to use and less error prone.
supported_archs     noarch
platforms           {darwin any}

homepage            https://github.com/hgrecco/flexparser

checksums           rmd160  5bab22c20052a583dfd8963ec7dc006122eaad9e \
                    sha256  266d98905595be2ccc5da964fe0a2c3526fbbffdc45b65b3146d75db992ef6b2 \
                    size    31799

python.versions     310 311 312 313 314

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

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