# -*- 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.5.1
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  ef3051c8abf02c446df29ecc314576c210edf629 \
                    sha256  d339d2b616ba90ccce58da8495a78f46e55d4d25f9fd71dfd526f07e7d53f957 \
                    size    88195

python.versions     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}
}
