# $OpenBSD: Makefile,v 1.8 2019/07/12 20:45:55 sthen Exp $

COMMENT =		A pathlib-compatible Zipfile object wrapper.

MODPY_EGG_VERSION =	0.6.0
DISTNAME =		zipp-${MODPY_EGG_VERSION}
PKGNAME =		py-${DISTNAME}

HOMEPAGE =		https://github.com/jaraco/zipp

CATEGORIES =		archivers

MAINTAINER =		Renaud Allard <renaud@allard.it>

# MIT
PERMIT_PACKAGE =	Yes

MODULES =		lang/python
MODPY_PI =		Yes
MODPY_SETUPTOOLS =	Yes

FLAVORS =		python3
FLAVOR ?=

# python3 tests require py-flake8-* ports
.if ! ${FLAVOR:Mpython3}
do-test:
	cd ${WRKSRC} && ${MODPY_BIN} -m unittest discover python2
.endif

.include <bsd.port.mk>
