# -*- 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-tinycss2
version             1.4.0
revision            0

categories-append   graphics
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         tinycss2 is a low-level CSS parser and generator written in Python
long_description    {*}${description}: it can parse strings, return objects representing \
                    tokens and blocks, and generate CSS strings corresponding to these objects.

homepage            https://www.courtbouillon.org/tinycss2

checksums           rmd160  2ca381c29faeca92dd356753485f06d244667152 \
                    sha256  10c0972f6fc0fbee87c3edb76549357415e94548c1ae10ebccdea16fb404a9b7 \
                    size    87085

python.versions     39 310 311 312 313 314

python.pep517_backend   flit

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

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