# -*- 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.44.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  3a2023b83ad6ab5c693d0fcbbf7fbabc0f837573 \
                    sha256  68a5a5ffad82b8ff7d451c437529fb64f7c3b8123aaf0c021966a882d9e3947d \
                    size    988753

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
}
