# -*- 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-dropbox
version             11.36.2
revision            0
categories-append   devel
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     39 310 311

maintainers         nomaintainer
description         The offical Dropbox SDK for Python
long_description    {*}${description}

homepage            https://github.com/dropbox/dropbox-sdk-python

checksums           rmd160  37106467a2d08b0a3a9a7bfa424240d78c949b25 \
                    sha256  d48d3d16d486c78b11c14a1c4a28a2611fbf5a0d0a358b861bfd9482e603c500 \
                    size    585092

if {${name} ne ${subport}} {
    # setup.py hardcodes an archaic version of pytest-runner to support python 2.7.
    patchfiles-append   patch-allow-new-pytest-runner.diff

    depends_build-append \
                        port:py${python.version}-pytest-runner
    depends_lib-append  port:py${python.version}-requests \
                        port:py${python.version}-six \
                        port:py${python.version}-stone
}
