# -*- 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-httpbin
version             0.10.2
revision            0

supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         HTTP Request and Response Service
long_description    {*}${description}

homepage            https://github.com/requests/httpbin

checksums           sha256  632148698261c8684ea2d2b624cdea845b402b1fe91736e89df886408c6317a9 \
                    rmd160  566c64fafe394ae73bf5dc958a6da004b7d31752 \
                    size    107327

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-brotlicffi \
                    port:py${python.version}-decorator \
                    port:py${python.version}-flasgger \
                    port:py${python.version}-flask \
                    port:py${python.version}-greenlet \
                    port:py${python.version}-importlib-metadata \
                    port:py${python.version}-six \
                    port:py${python.version}-werkzeug

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
}
