landry 347e09398a Update to py-automat 0.8.0
adds support for py 3.8 per
53204208c3,
fixes runtime breakage for buildbot_worker as noticed by martingot at
protonmail (thanks!)

yes, i havent tested all the ports depending on this one, but since the
version we have in tree doesnt support python 3.8 it cant be worse..
2020-07-22 19:25:36 +00:00

42 lines
859 B
Makefile

# $OpenBSD: Makefile,v 1.8 2020/07/22 19:25:36 landry Exp $
COMMENT = finite-state machines in Python
MODPY_EGG_VERSION = 0.8.0
DISTNAME = Automat-${MODPY_EGG_VERSION}
PKGNAME = py-automat-${MODPY_EGG_VERSION}
CATEGORIES = devel
HOMEPAGE = https://github.com/glyph/Automat
# MIT
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODPY_PYTEST = Yes
MODPY_PYTEST_ARGS = lib/automat/_test/
BUILD_DEPENDS = devel/py-setuptools_scm${MODPY_FLAVOR} \
textproc/py-m2r${MODPY_FLAVOR}
RUN_DEPENDS = devel/py-attrs${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR} \
TEST_DEPENDS = devel/py-twisted${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
TEST_DEPENDS += devel/py-six${MODPY_FLAVOR}
.endif
post-install:
mv ${PREFIX}/bin/automat-visualize{,${MODPY_BIN_SUFFIX}}
.include <bsd.port.mk>