# -*- 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-aiohttp
version             3.11.7
categories-append   devel
license             Apache-2

python.versions     38 39 310 311 312 313

maintainers         {ipglider.org:miguel @ipglider} openmaintainer

description         Async http client/server framework
long_description    aiohttp key futures are the support for both client and \
                    server side of HTTP protocol, support for both client and \
                    server Web-Sockets out-of-the-box without the Callback Hell \
                    and Web-server's middlewares and pluggable routing.

homepage            https://github.com/aio-libs/aiohttp

checksums           rmd160  4d6bf445f446aaf98fd01b35435227677ef0f51c \
                    sha256  01a8aca4af3da85cea5c90141d23f4b0eee3cbecfd33b029a45a80f28c66c668 \
                    size    7666482

if {${name} ne ${subport}} {
    if {${python.version} == 38} {
        version     3.10.11
        revision    0
        checksums   rmd160  a2d57fe880b58e2d1bbd4823413b0964a9434d2d \
                    sha256  9dc2b8f3dcab2e39e0fa309c8da50c3b55e6f34ab25f1a71d3288f24924d33a7 \
                    size    7551886
    }

    depends_lib-append      port:py${python.version}-aiodns \
                            port:py${python.version}-aiohappyeyeballs \
                            port:py${python.version}-aiosignal \
                            port:py${python.version}-attrs \
                            port:py${python.version}-brotli \
                            port:py${python.version}-frozenlist \
                            port:py${python.version}-multidict \
                            port:py${python.version}-yarl

    if {${python.version} > 38} {
        # dependency added in 3.11.0, which does not support python 3.8
        depends_lib-append  port:py${python.version}-propcache
    }

    if {${python.version} < 311} {
        depends_lib-append  port:py${python.version}-async-timeout
    }
}
