# -*- 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-pymdown-extensions
version             12.1
revision            0

categories-append   textproc
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Extension pack for Python Markdown.
long_description    {*}${description}

homepage            https://github.com/facelessuser/pymdown-extensions

distname            pymdown_extensions-${version}

checksums           rmd160  5cf692c92a6eeb5972ea560ab8a7ce83a6d6b300 \
                    sha256  fdb8f47f5d7fd069d10ef2a7d8908e613d7865ff0419d544a0ffd3984e884f11 \
                    size    868245

python.versions     313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-markdown \
                    port:py${python.version}-pygments \
                    port:py${python.version}-yaml

    test.run        yes
}
