# -*- 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.43.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  7aa757daf49a7faf528c1fd0e837dfda8aa8b469 \
                    sha256  e74d238200a26868977002190fb6631613480a93dfe0c9c982e77021ed60a017 \
                    size    785369

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
}
