# -*- 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-parsel
version             1.6.0
revision            0
python.versions     27 35 36 37 38 39
platforms           darwin
maintainers         {khindenburg @kurthindenburg} openmaintainer
license             BSD
description         Extract data from HTML and XML using XPath and CSS selectors
long_description    ${description}

homepage            https://pypi.python.org/pypi/parsel
master_sites        pypi:p/${python.rootname}/
distname            ${python.rootname}-${version}

checksums           rmd160  c3764edd48eb37987f1d11eab740e420e4452092 \
                    sha256  70efef0b651a996cceebc69e55a85eb2233be0890959203ba7c3a03c72725c79 \
                    size    41812

if {${name} ne ${subport}} {
    depends_build-append port:py${python.version}-setuptools \
                        port:py${python.version}-pytest-runner
    depends_lib-append  port:py${python.version}-cssselect \
                        port:py${python.version}-lxml \
                        port:py${python.version}-six \
                        port:py${python.version}-w3lib

    depends_test-append port:py${python.version}-pytest
    test.run            yes
    test.cmd            py.test-${python.branch}
    test.target
    test.env            PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
