# -*- 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.10.0
revision            0
python.versions     310 311 312
platforms           {darwin any}
supported_archs     noarch
maintainers         {khindenburg @kurthindenburg} openmaintainer
license             BSD
description         Extract data from HTML and XML using XPath and CSS selectors
long_description    {*}${description}

homepage            https://github.com/scrapy/parsel/

checksums           rmd160  640205ba6621fa8034f721d262270a598c7a21c5 \
                    sha256  14f17db9559f51b43357b9dfe43cec870a8efb5ea4857abb624ec6ff80d8a080 \
                    size    51421

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}-jmespath \
                        port:py${python.version}-psutil \
                        port:py${python.version}-w3lib

    test.run            yes
}
