# -*- 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-openai
version             2.52.0
revision            0

categories-append   llm
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {reneeotten @reneeotten} openmaintainer

description         The official Python library for the openai API
long_description    {*}${description}

homepage            https://github.com/openai/openai-python

checksums           rmd160  4234c72e2aaab5e007d631ff3e9cb55323f43b1d \
                    sha256  7c736d592f81471ce1f734838390983c4d8c8aecff23dcd36e600a58e5032d9c \
                    size    1098876

python.versions     313 314
python.pep517_backend hatch

if {${name} ne ${subport}} {
    patchfiles      patch-pyproject.toml.diff

    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}-jiter \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-sniffio \
                    port:py${python.version}-tqdm \
                    port:py${python.version}-typing_extensions
}
