# $OpenBSD: Makefile,v 1.19 2013/03/11 11:41:28 espie Exp $

COMMENT=	cryptographic recipes and primitives for Python

MODPY_EGG_VERSION=	0.9
DISTNAME=	cryptography-${MODPY_EGG_VERSION}
PKGNAME=	${MODPY_PY_PREFIX}${DISTNAME}
CATEGORIES=	security devel

HOMEPAGE=	https://cryptography.io/

# dual: BSD or Apache 2
PERMIT_PACKAGE_CDROM=	Yes

MODULES=	lang/python
MODPY_SETUPTOOLS= Yes
MODPY_PI=	Yes

FLAVORS=	python3
FLAVOR?=

RUN_DEPENDS=	devel/py-asn1${MODPY_FLAVOR} \
		devel/py-cffi${MODPY_FLAVOR}
# idna
# ipaddress

.if !${FLAVOR:Mpython3}
RUN_DEPENDS+=	devel/py-enum34 \
		devel/py-six
.endif

BUILD_DEPENDS=	${RUN_DEPENDS}

TEST_DEPENDS=	devel/py-test${MODPY_FLAVOR} \
		security/py-cryptography_vectors${MODPY_FLAVOR} \
		textproc/py-iso8601${MODPY_FLAVOR}
# pretend

.include <bsd.port.mk>
