# -*- 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.4.0
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  092f4ccf56bae3656952a95be6469bac438def17 \
                    sha256  d07cb2a223a185873a1d0ee78b9faa9597e45b3f6186df21a95cec1e9bcdc9a5 \
                    size    1027707

python.versions     39 310 311 312 313

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

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