sthen b9e75bfd9a update to py-hypothesis 4.57.1, newest version with py2+3.
as found by daniel@, the previous version (4.15.0) is broken with py3.

test results from a sample of the ports using this as TEST_DEPENDS
look sane (I didn't test every one, but most) - those with errors have
similar/same with the older version under py2.
2020-07-06 10:35:08 +00:00

35 lines
716 B
Makefile

# $OpenBSD: Makefile,v 1.23 2020/07/06 10:35:08 sthen Exp $
COMMENT = library for property based testing
MODPY_EGG_VERSION = 4.57.1
DISTNAME = hypothesis-${MODPY_EGG_VERSION}
PKGNAME = py-hypothesis-${MODPY_EGG_VERSION}
CATEGORIES = devel
HOMEPAGE = https://hypothesis.works/
# MPL 2.0
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=
RUN_DEPENDS = devel/py-attrs${MODPY_FLAVOR} \
devel/py-coverage${MODPY_FLAVOR} \
devel/py-sortedcontainers${MODPY_FLAVOR}
# Primary author is completely uninterested in supplying tests via PyPI
NO_TEST = Yes
.if !${FLAVOR:Mpython3}
RUN_DEPENDS += devel/py-enum34
.endif
.include <bsd.port.mk>