# $NetBSD: Makefile,v 1.2 2022/01/31 11:55:26 wiz Exp $ DISTNAME= flake8-3.9.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} PKGREVISION= 3 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=f/flake8/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://gitlab.com/pycqa/flake8 COMMENT= Modular source code checker for Python programs LICENSE= mit DEPENDS+= ${PYPKGPREFIX}-codestyle>=2.7.0:../../devel/py-codestyle DEPENDS+= ${PYPKGPREFIX}-flakes>=2.3.0:../../devel/py-flakes DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6.0:../../devel/py-mccabe06 DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34 DEPENDS+= ${PYPKGPREFIX}-functools32-[0-9]*:../../devel/py-functools32 DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata2 BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock # not for python 2 #TEST_DEPENDS+= ${PYPKGPREFIX}-pylint-[0-9]*:../../devel/py-pylint USE_LANGUAGES= # none PYTHON_VERSIONS_ACCEPTED= 27 USE_PKG_RESOURCES= yes post-install: cd ${DESTDIR}${PREFIX}/bin && \ ${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE} # as of 3.9.2 # 21 failed, 460 passed, 1 error TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib do-test: cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk"