# -*- 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
version             1.0.1
license             MIT
platforms           darwin
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
master_sites        pypi:d/discord.py
distname            discord.py-${version}

checksums           rmd160 351292a467f7e65815ea51d4ce8afa5bd2b5a536 \
                    sha256 173b5e2fea2e012bbe964e87e92826ccaf97056bba539a7caec988f329acca04 \
                    size 595252

python.versions     37

if {${name} ne ${subport}} {
    depends_build   port:py${python.version}-setuptools
    depends_lib     port:py${python.version}-aiohttp \
                    port:py${python.version}-websockets

    livecheck.type  none
} else {
    livecheck.type  pypi
    livecheck.name  discord.py
}