# -*- 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
PortGroup           github 1.0

github.setup        dbr tvdb_api 3.1
github.tarball_from archive
revision            0
name                py-tvdb

categories-append   net
supported_archs     noarch
platforms           {darwin any}
license             public-domain
maintainers         nomaintainer

description         An easy to use API interface to TheTVDB.com
long_description    {*}${description}

checksums           rmd160  a65312fdc9c8f60baf0382cbaf70aafcd10da4bc \
                    sha256  39518e0c62cf6ca4702085a09ba4f63778c2891fd25931d40eda0b0a995d4132 \
                    size    1115967

python.versions     38

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

    post-extract {
        reinplace "s|'${version}-dev'|'${version}'|g" ${worksrcpath}/setup.py
    }

    test.run        yes
}
