# -*- 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.41.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  64b262cb833c3e4f12cddfb4af10c31b211ce235 \
                    sha256  db5c362acd6604b84f076abbefa66826ea4b46ecba2954ed866e6a149a1352c0 \
                    size    783525

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
}
