# -*- 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-zeep
version             4.3.3
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         A fast and modern Python SOAP client.
long_description    {*}${description}
homepage            https://docs.python-zeep.org/en/master/

supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314

checksums           rmd160  144471431fa9c4b1833ef964409d57c17418d345 \
                    sha256  99d5059f92f721020998695fd9c85289ccb03ec5a2398ad49c6dbe43f19cfb94 \
                    size    167372

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-appdirs \
                    port:py${python.version}-attrs \
                    port:py${python.version}-cached-property \
                    port:py${python.version}-defusedxml \
                    port:py${python.version}-isodate \
                    port:py${python.version}-lxml \
                    port:py${python.version}-requests \
                    port:py${python.version}-requests-file \
                    port:py${python.version}-requests-toolbelt \
                    port:py${python.version}-tz

    variant async {
        depends_lib-append \
                        port:py${python.version}-httpx
    }

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

    default_variants +async +xmlsec
}
