# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        huggingface huggingface_hub 0.16.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
name                py-${github.project}
categories-append   textproc

license             Apache-2
maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch

description         Client library to download and publish models and \
                    other files on the huggingface.co hub

long_description    {*}${description}

checksums           rmd160  47432e61a5a8ff3ba135716ee73dc4351ac6def9 \
                    sha256  605d9b873887263746b693437e501a65433e81cea20d21394cf6c363390dc696 \
                    size    1482214

python.versions     39 310 311

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-filelock \
                    port:py${python.version}-requests \
                    port:py${python.version}-tqdm

    depends_test-append \
                    port:py${python.version}-pytorch \
                    port:py${python.version}-urllib3

    test.run        yes
}
