# -*- 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.12.15
revision            0
categories-append   devel
license             Apache-2

python.versions     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  c7e1a61c591cfb14415c164ef731047c4e5a1610 \
                    sha256  4fc61385e9c98d72fcdf47e6dd81833f47b2f77c114c29cd64a361be57a763a2 \
                    size    7823716

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-pkgconfig

    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}-propcache \
                            port:py${python.version}-yarl

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