# -*- 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-kubernetes
version             37.0.1
revision            0

homepage            https://github.com/kubernetes-client/python

description         Official Python Client Library for Kubernetes

long_description    {*}${description}

license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           {darwin any}
supported_archs     noarch
categories-append   sysutils

python.versions     310 311

checksums           rmd160  10cac7fc639bf4d40eb9ba06e1ff2e5507e321c4 \
                    sha256  e41db0a95615c2388680a2d556df33fd0f27a5717c9b5df5857e475c196c2f10 \
                    size    3358265

if {${name} ne ${subport}} {
    # Use upstream's release setup to include the asynchronous client.
    post-extract {
        copy -force ${worksrcpath}/setup-release.py ${worksrcpath}/setup.py
    }

    depends_lib-append \
                    port:py${python.version}-aiohttp \
                    port:py${python.version}-aiohttp-retry \
                    port:py${python.version}-certifi \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-durationpy \
                    port:py${python.version}-google-auth \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-requests \
                    port:py${python.version}-requests-oauthlib \
                    port:py${python.version}-typing_extensions \
                    port:py${python.version}-urllib3 \
                    port:py${python.version}-websocket-client \
                    port:py${python.version}-yaml
}
