# -*- 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-commonmark
version             0.9.1
revision            1
license             BSD
supported_archs     noarch
platforms           {darwin any}

maintainers         {@harens harens} openmaintainer

description         Python CommonMark parser
long_description    commonmark.py is a pure Python port of jgm's commonmark.js, \
                    a Markdown parser and renderer for the CommonMark specification, \
                    using only native modules

homepage            https://commonmarkpy.readthedocs.io/en/latest/

checksums           rmd160 87a980080d252986c782720cbb3e834ca4ede9da \
                    sha256 452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60 \
                    size   95764

python.versions     39 310 311 312

if {${name} ne ${subport}} {
    depends_test-append port:py${python.version}-hypothesis

    test.run            yes
    python.test_framework
    test.cmd            ${python.bin} commonmark/tests/run_spec_tests.py
}
