# -*- 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-yarl
version             1.22.0
revision            0
categories-append   devel
license             Apache-2

python.versions     310 311 312 313 314

maintainers         {ipglider.org:miguel @ipglider} openmaintainer

description         Yet another URL library.
long_description    URL library with immutable URL objects.

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

checksums           rmd160  92c661c9560ab029d0ecbf88b8ff330857e32f55 \
                    sha256  bebf8557577d4401ba8bd9ff33906f1376c877aa78d1fe216ad01b4d6745af71 \
                    size    187169

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

    if {${python.version} < 311} {
        depends_build-append \
                            port:py${python.version}-tomli
    }

    depends_lib-append      port:py${python.version}-idna \
                            port:py${python.version}-multidict \
                            port:py${python.version}-propcache
}
