# -*- 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        wkentaro gdown 5.2.0 v
github.tarball_from archive
revision            0

categories          net python
license             MIT
maintainers         {i0ntempest @i0ntempest} openmaintainer
supported_archs     noarch

description         Google Drive Public File Downloader when Curl/Wget Fails
long_description    ${github.project} downloads a public file/folder from Google Drive.\
                    ${github.project} provides what curl/wget doesn't for Google Drive:\n\
                    Skip the security notice allowing you to download large files \(curl/wget fails\)\;\n\
                    Recursive download of files in a folder \(maximum 50 files per folder\)\;\n\
                    Specify download file format for Google Slides/Sheet/Docs like PDF/XML/CSV

checksums           rmd160  b08e62de657fd9b09779b4150f21c229b22f38b1 \
                    sha256  d9246083d6a3bc170cb02e86a0d68c1f8694ba7df5a37a55512d2d2b3e635b8b \
                    size    283710

depends_build-append \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-setuptools_scm \
                    port:py${python.version}-hatch-fancy-pypi-readme \
                    port:py${python.version}-hatch-vcs

depends_lib-append \
                    port:py${python.version}-filelock \
                    port:py${python.version}-requests \
                    port:py${python.version}-tqdm \
                    port:py${python.version}-beautifulsoup4 \
                    port:py${python.version}-typing_extensions

python.pep517_backend \
                    hatch

build.env-append    SETUPTOOLS_SCM_PRETEND_VERSION=${version}

if {
    ![variant_isset python39] && ![variant_isset python310] && ![variant_isset python311] &&
    ![variant_isset python312] && ![variant_isset python313]
} {
    default_variants +python313
}

variant python39 conflicts python310 python311 python312 python313 description {Use Python 3.9} {
    python.default_version 39
}

variant python310 conflicts python39 python311 python312 python313 description {Use Python 3.10} {
    python.default_version 310
}

variant python311 conflicts python39 python310 python312 python313 description {Use Python 3.11} {
    python.default_version 311
}

variant python312 conflicts python39 python310 python311 python313 description {Use Python 3.12} {
    python.default_version 312
}

variant python313 conflicts python39 python310 python311 python312 description {Use Python 3.13} {
    python.default_version 313
}
