# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
description CSS parser and library for Python
long_description A Python package to parse and build \
CSS Cascading Style Sheets.
python.versions 27 35 36 37
homepage http://cthedot.de/cssutils/
master_sites https://bitbucket.org/cthedot/cssutils/downloads/
distname cssutils-${version}
checksums rmd160 ca6af81a4bc73354056a78f0a5644371bd8fa199 \
sha256 a2fcf06467553038e98fea9cfe36af2bf14063eb147a70958cfcaa8f5786acaf \
if {${name} ne ${subport}} {
port:py${python.version}-setuptools
reinplace "s|pbr < 1.7.0|pbr|g" ${worksrcpath}/setup.py
port:py${python.version}-mock \
port:py${python.version}-nose \
port:py${python.version}-pbr
test.cmd nosetests-${python.branch}
test.env PYTHONPATH=${worksrcpath}/build/lib
# We should notify upstream not to install tests.
delete ${destroot}${python.pkgd}/tests
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath} README.txt \
${destroot}${prefix}/share/doc/${subport}
livecheck.url [lindex ${master_sites} 0]
livecheck.regex cssutils-(\[0-9.\]+)${extract.suffix}