COMMENT=	cross-project testing tool for Python

MODPY_DISTV=	8.4.2
DISTNAME=	pytest-${MODPY_DISTV}
PKGNAME=	py-test-${MODPY_DISTV}
REVISION=	0

CATEGORIES=	devel

HOMEPAGE=	https://docs.pytest.org/en/latest/

# MIT
PERMIT_PACKAGE=	Yes

MODULES=	lang/python

MODPY_PI=	Yes
MODPY_PYBUILD=	setuptools_scm
MODPY_PYTEST_ARGS= testing

BUILD_DEPENDS=	devel/gmake \
		textproc/py-iniconfig \
		devel/py-pluggy<2.0 \
		textproc/py-sphinx

RUN_DEPENDS=	textproc/py-iniconfig \
		sysutils/py-packaging \
		devel/py-pluggy<2.0 \
		textproc/py-pygments

# tests run, but there are quite a lot of failures
TEST_DEPENDS=	${FULLPKGNAME}:${FULLPKGPATH} \
		devel/py-argcomplete \
		devel/py-attrs \
		devel/py-hypothesis \
		devel/py-mock \
		www/py-requests \
		devel/py-setuptools \
		textproc/py-xmlschema \
		shells/bash

post-build:
	cd ${WRKSRC}/doc/en; PYTHONPATH=${WRKSRC}/build/lib gmake man

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/en/_build/man/pytest.1 ${PREFIX}/man/man1

.include <bsd.port.mk>
