# -*- 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-mistral-common
python.rootname     mistral_common
version             1.13.1
revision            0
categories-append   llm
license             Apache-2
maintainers         {i0ntempest @i0ntempest} openmaintainer
platforms           {darwin any}
supported_archs     noarch

description         Common utilities for working with Mistral AI models
long_description    ${python.rootname} provides tokenization, validation, and normalization utilities for Mistral AI models.
homepage            https://github.com/mistralai/mistral-common

checksums           rmd160  2db9c626a41e18d14c0d115eacbfc233054ba6f7 \
                    sha256  ad8d5b7e866e907925e31274c314fdaa7f7c45a0a43e7d2f543fd7fe65ddcea9 \
                    size    6420824

python.versions     313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-jsonschema \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pydantic \
                    port:py${python.version}-pydantic-extra-types \
                    port:py${python.version}-requests \
                    port:py${python.version}-tiktoken \
                    port:py${python.version}-typing_extensions

    post-extract {
        delete -force ${worksrcpath}/src/${python.rootname}/.DS_Store
    }

    livecheck.type  none
}
