# -*- 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-cloudflare
version             4.1.0
revision            0
categories          python
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Python interface to the CloudFlare API.
long_description    {*}${description}
supported_archs     noarch
platforms           {darwin any}
homepage            https://github.com/cloudflare/cloudflare-python

checksums           rmd160  230740f27109da8872a4a2f45b1aa5d16dd9910c \
                    sha256  6b9fbe994856fe942adc6a4881b7beded208034dc5c53dd683751f632e47a1ac \
                    size    1826873

python.versions     39 310 311 312 313

python.pep517_backend \
                    hatch

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

    depends_lib-append  \
                    port:py${python.version}-anyio \
                    port:py${python.version}-distro \
                    port:py${python.version}-httpx \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-sniffio \
                    port:py${python.version}-typing_extensions

    patchfiles      patch-pyproject.toml.diff
}

