# $NetBSD: Makefile,v 1.13 2024/01/20 16:07:57 wiz Exp $ DISTNAME= pytest_randomly-3.15.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//:S/_/-/} PKGREVISION= 1 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-randomly/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://github.com/pytest-dev/pytest-randomly COMMENT= Pytest plugin to randomly order tests and control random.seed LICENSE= modified-bsd TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test USE_LANGUAGES= # none PYTHON_VERSIONS_INCOMPATIBLE= 27 .include "../../lang/python/pyversion.mk" .if ${PYTHON_VERSION} < 310 DEPENDS+= ${PYPKGPREFIX}-importlib-metadata>=3.6.0:../../devel/py-importlib-metadata .endif do-test: cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests .include "../../lang/python/wheel.mk" .include "../../mk/bsd.pkg.mk"