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

description         Common interface for data container classes
long_description    The `ItemAdapter` class is a wrapper for data \
                    container objects, providing a common interface \
                    to handle objects of different types in an uniform \
                    manner, regardless of their underlying implementation.

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

checksums           rmd160  beaf246fb4edfbb768d2f5002a419ae8354ff9c1 \
                    sha256  a0431fe5b3f9d95b7e9a20e05789672bc733c173d9989dc9d515ba6b0b9b6a08 \
                    size    31543

python.pep517_backend   hatch

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    test.run            yes
    # Note the dependency loop for py-scrapy and py-itemadapter
    depends_test-append port:py${python.version}-pytest \
                        port:py${python.version}-scrapy
}
