# -*- 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-pooch
version             1.9.0
revision            0
license             BSD
maintainers         {mps @Schamschula} openmaintainer

description         Pooch manages your Python library's sample data files it \
                    automatically downloads and stores them in a local directory with \
                    support for versioning and corruption checks.
long_description    {*}${description}
homepage            https://github.com/fatiando/pooch

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  892a56a2fb81ed99a6518fde112386872105b2de \
                    sha256  de46729579b9857ffd3e741987a2f6d5e0e03219892c167c6578c0091fb511ed \
                    size    61788

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_lib     port:py${python.version}-requests \
                    port:py${python.version}-packaging \
                    port:py${python.version}-platformdirs

    variant progress description {Provide progress status} {
        depends_lib-append \
                    port:py${python.version}-tqdm
    }

    variant sftp description {Add sftp support} {
        depends_lib-append \
                    port:py${python.version}-paramiko
    }

    variant xxhash description {Provide xxhash support} {
        depends_lib-append \
                    port:py${python.version}-xxhash
    }

    default_variants \
                    +progress +sftp
}
