# -*- 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-mistune
version             3.1.4
revision            0

categories-append   devel textproc
supported_archs     noarch
platforms           {darwin any}
license             BSD

python.versions     27 39 310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         The fastest markdown parser in pure Python.
long_description    {*}${description}

homepage            https://github.com/lepture/mistune

checksums           rmd160  230788ff345316c3a57bfcc5d6ae11bd9b5fc0bd \
                    sha256  b5a7f801d389f724ec702840c11d8fc48f2b33519102fc7ee739e8177b672164 \
                    size    94588

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     2.0.5
        epoch       1
        revision    0
        checksums   rmd160  fa8b43558dfa42429dafc89984e4e65f92687213 \
                    sha256  0246113cb2492db875c6be56974a7c893333bf26cd92891c85f63151cee09d34 \
                    size    75854
        depends_build-append \
                    port:py${python.version}-setuptools
    } elseif {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-typing_extensions
    }

    test.run        yes

    livecheck.type  none
}
