# -*- 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-cssselect2
version             0.4.1
revision            0

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

description         cssselect2 is a straightforward implementation of CSS3 Selectors for markup documents
long_description    ${description}

homepage            https://doc.courtbouillon.org/cssselect2/

checksums           rmd160  530efcdcd5c6ca5ebe359807557a9f1ca496aef7 \
                    sha256  93fbb9af860e95dd40bf18c3b2b6ed99189a07c0f29ba76f9c5be71344664ec8 \
                    size    32756

python.versions     37 38 39

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

    depends_test-append \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.args       -o addopts=''
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
