# -*- 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
PortGroup compiler_blacklist_versions 1.0
python.versions 27 34 35 36
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 pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${python.rootname}-${version}
checksums rmd160 990169925f758a3499c8ea57b17ee4cb028733d7 \
sha256 9fc295bf69130a342e7a19a39d7bbeb15c0bcaabc7382ec33ef3b2b7d18d2f63
if { ${os.major} < 11 } {
# https://trac.macports.org/ticket/54519
# https://trac.macports.org/ticket/54753
# https://trac.macports.org/ticket/55079
patchfiles-append patch-src__cffi_src_build_openssl.py.diff
if {${name} ne ${subport}} {
depends_lib-append port:py${python.version}-setuptools \
port:py${python.version}-idna \
port:py${python.version}-asn1crypto \
port:py${python.version}-six \
port:py${python.version}-cffi
if {${python.version} < 34} {
depends_lib-append port:py${python.version}-enum34 \
port:py${python.version}-ipaddress