# -*- 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-discordpy
python.rootname     discord_py
version             2.6.3
license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         {toby @tobypeterson} openmaintainer
description         API wrapper for Discord written in Python
long_description    discord.py is an API wrapper for Discord written in Python. \
                    This was written to allow easier writing of bots or chat logs.

homepage            https://github.com/Rapptz/discord.py

checksums           rmd160  9363d3176a4f957a54b8ed33f8cda191de6f956c \
                    sha256  92bb3ef9dbe08525803be1e357bc0191f59ae16956690fc96c34f40bcd02c649 \
                    size    1092075

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append      port:py${python.version}-aiohttp \
                            port:py${python.version}-orjson \
                            port:py${python.version}-zstd

    if {${python.version} >= 313} {
        depends_lib-append  port:py${python.version}-audioop_lts
    }
}
