# -*- 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-itemloaders
version             1.3.2
revision            0
maintainers         {khindenburg @kurthindenburg} openmaintainer
platforms           {darwin any}
supported_archs     noarch
license             BSD

description         Base library for scrapy's ItemLoader
long_description    {*}${description}

homepage            https://pypi.python.org/pypi/${python.rootname}

checksums           rmd160  ae8da707f8eaefb0b1015783ae18aadb28cf2def \
                    sha256  4faf5b3abe83bf014476e3fd9ccf66867282971d9f1d4e96d9a61b60c3786770 \
                    size    19707

python.versions     310 311 312

if {${name} ne ${subport}} {
    depends_lib-append \
        port:py${python.version}-itemadapter \
        port:py${python.version}-jmespath \
        port:py${python.version}-parsel \
        port:py${python.version}-w3lib

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

    test.run    yes
}
