# -*- 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-xsdata
version             26.10
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         xsData is a complete data binding library for python allowing \
                    developers to access and use XML and JSON documents as simple \
                    objects rather than using DOM.
long_description    {*}${description} The code generator supports XML schemas, DTD, \
                    WSDL definitions, XML & JSON documents. It produces simple \
                    dataclasses with type hints and simple binding metadata.
homepage            https://github.com/tefra/xsdata

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  87c8ca44c6afdf62b96a807204c87d2c2d5411bb \
                    sha256  4bc944d9fa3955f84ecebb83c677e2f681687c002a777731a21104e8360a7522 \
                    size    356001

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-click \
                    port:py${python.version}-jinja2 \
                    port:py${python.version}-toposort \
                    port:ruff

    if {${python.version} < 311} {
		name        py-xsdata
		version     26.2
		revision    0

        checksums   rmd160  3fa63599946b51bda50af7afb6086fbed882b546 \
                    sha256  c631af71aaa75734f8ce92a08fcf8389d905dee2aab0b5032c9032e9071009a6 \
                    size    349690

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