# -*- 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             25.1.1
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  8ade59af643d8491d13923c0506144abe055f4ed \
                    sha256  c914b734e0f2d59e5b720d145ee010f1fd9a13ee93900922a2f3f9d593b8382c \
                    size    435016

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    python.pep517_backend   hatch

    depends_build-append \
                    port:py${python.version}-hatch-vcs

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

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