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

github.setup        berdario resumable-urlretrieve 0.1.6
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-${github.project}

license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314

maintainers         {gmail.com:rubendibattista @rdbisme} openmaintainer
description         Small library to fetch files over HTTP and resuming their download
long_description    {*}${description}
checksums           rmd160  afdd69d58743c1a506d8072d1a755abcbfaca038 \
                    sha256  325a46500e2c7786d18ae254dc10b144b5ff2993e5afbf527cdfade50937a5ad \
                    size    318654

if {${subport} ne ${name}} {
    depends_lib-append      port:py${python.version}-requests

    test.run                yes
    depends_test-append     port:py${python.version}-rangehttpserver
}
