# -*- 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-treq
version             22.2.0
revision            0

maintainers         nomaintainer
description         A requests-like API built on top of twisted.web's Agent
long_description    {*}${description}

supported_archs     noarch
platforms           {darwin any}

homepage            https://github.com/twisted/treq

license             MIT

checksums           sha256  df757e3f141fc782ede076a604521194ffcb40fa2645cf48e5a37060307f52ec \
                    rmd160  d3cf6bbe76dbce9874cfe2fb8686d90eb97490fb \
                    size    72922

python.versions     39 310

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-attrs \
                    port:py${python.version}-idna \
                    port:py${python.version}-incremental \
                    port:py${python.version}-openssl \
                    port:py${python.version}-requests \
                    port:py${python.version}-service_identity \
                    port:py${python.version}-six \
                    port:py${python.version}-twisted

    depends_test-append \
                    port:py${python.version}-httpbin \
                    port:py${python.version}-mock \
                    port:py${python.version}-pep8 \
                    port:py${python.version}-pyflakes \
                    port:py${python.version}-sphinx

    test.run        yes
    python.test_framework
    test.cmd        trial-${python.branch}
    test.target     treq
}
