# -*- 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-cattrs
version             26.2.0
revision            0

license             MIT
maintainers         nomaintainer
supported_archs     noarch
platforms           {darwin any}

description         ${name} is an open-source Python library \
                    for structuring and unstructuring data.
long_description    {*}${description}. ${name} works best with attrs classes, \
                    dataclasses and the usual Python collections, \
                    but other kinds of classes are supported \
                    by manually registering converters.

homepage            https://github.com/python-attrs/cattrs

checksums           rmd160  a9d1848040a2d082bb1892d60f20b3bb83ad849c \
                    sha256  3cf49f69df8326bcf17a3cb3d3d3ec4a856858fe3a7473746c9044c317d3ba55 \
                    size    524993

python.versions     310 311 312 313 314
python.pep517_backend   hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-vcs

    depends_lib-append \
                    port:py${python.version}-attrs \
                    port:py${python.version}-typing_extensions

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-exceptiongroup
    }
}
