# -*- 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-cssselect
version 1.6.0
categories-append devel
platforms {darwin any}
supported_archs noarch
license BSD
maintainers nomaintainer
description cssselect parses CSS3 Selectors and translates \
them to XPath 1.0
long_description ${description}. Such expressions can be used in \
lxml or another XPath engine to find the matching \
elements in an XML or HTML document.
homepage https://github.com/scrapy/cssselect
checksums rmd160 bf880970924d3e525a7b29ab77803139fcdfdd7d \
sha256 8c83a7139e97b93aa5ebdc0f46e785f7056a08a8bf201e597a6a2629d7eb11db \
size 51743
python.versions 310 311 312 313 314
python.pep517_backend \
hatch
if {${name} ne ${subport}} {
if {${python.version} == 310} {
version 1.5.0
checksums rmd160 fe1b61be453bd889cb8c1cbed3371d5887022b18 \
sha256 3cbe82dd7acbee9ba9e5723b5f9e4749826912f1fb31cd7f92aabed5fde15b15 \
size 47598
livecheck.type none
}
depends_test-append \
port:py${python.version}-hypothesis \
port:py${python.version}-pytest-asyncio
post-destroot {
xinstall -m 0644 -W ${worksrcpath} \
AUTHORS CHANGES LICENSE README.rst \
${destroot}${prefix}/share/doc/${subport}
}
test.run yes
}