# -*- 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-parfive
version             1.3.0
revision            0
categories-append   net
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         A parallel file downloader using asyncio.
long_description    {*}${description} parfive can handle downloading multiple files in \
                    parallel as well as downloading each file in a number of chunks.
platforms           darwin
homepage            https://parfive.readthedocs.io/en/stable/

python.versions     37 38 39

checksums           rmd160  1b4dbc0a24519c85d8eb2172208faec350f79e5b \
                    sha256  c3067e6ca9d6fb88a10958338360bd9c47edfd8ab11098d4c601f7f2887edadd \
                    size    26171

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

    depends_lib-append \
                    port:py${python.version}-aiohttp \
                    port:py${python.version}-tqdm

    livecheck.type  none
}

variant ftp {
    depends_lib-append \
                    port:py${python.version}-aioftp
}
