# -*- 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

set _name           PyJWT
set _n              [string index ${_name} 0]

name                py-jwt
version             1.7.1
categories-append   security
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         JSON Web Token implementation in Python
long_description    ${description}

homepage            https://github.com/jpadilla/pyjwt
master_sites        pypi:${_n}/${_name}/
distname            ${_name}-${version}

checksums           rmd160  bfe7a0ea07327593b728ba82766d809ae4c1be75 \
                    sha256  8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96 \
                    size    41979

python.versions     27 34 35 36 37

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools \
                            port:py${python.version}-pytest-runner


    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/${_name}/json
    livecheck.regex "\"${_name}-(\[.\\d\]+)\\.tar\\.gz\""
}