# -*- 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.38.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  36fe80fc4f254b051cb9c9afbeefb978d67ea3c4 \
                    sha256  798694c6cf74145541fda94325b6f8f72d8e1fd0262cc137c8d728177a6a4ce3 \
                    size    772764

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
}
