# -*- 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
# $Id: Portfile 119962 2014-05-12 09:45:49Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-cryptography
version             0.4
revision            0
categories-append   devel
platforms           darwin
license             Apache

python.versions     27 33 34

maintainers         stromnov openmaintainer

description         Package which provides cryptographic recipes and primitives to Python developers.
long_description    ${description}

homepage            https://github.com/pyca/cryptography
master_sites        https://pypi.python.org/packages/source/c/cryptography/

distname            cryptography-${version}

checksums           rmd160  b8d99e06b13c46e45852d98ceedfdcf0227c4f91 \
                    sha256  5ef81de44c87a87779710cbb476ffbec86a4a6c0bd2a5bebeccc3bfb3c3478e5

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-cffi \
                        port:py${python.version}-six

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {cryptography-(\d+(?:\.\d+)*)\.[tz]}
}
