# -*- 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        danvk RangeHTTPServer 1.2.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-rangehttpserver

platforms           {darwin any}
license             Apache-2
supported_archs     noarch

python.versions     310 311 312 313 314

maintainers         {gmail.com:rubendibattista @rdbisme} openmaintainer
description         SimpleHTTPServer with support for Range requests

long_description    {*}${description}
checksums           rmd160  5f42f69b3b9356fbda3453acef53282bdc7318e7 \
                    sha256  639e59134dff9dd39ee88750649a90ea9c76a9b1332b8334632fec2c8ca99e1f \
                    size    8167

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

    test.run                yes
    python.test_framework   nose
}
