# $NetBSD: Makefile,v 1.34 2020/06/11 10:58:05 adam Exp $ DISTNAME= flake8-3.8.3 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 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.6.0:../../devel/py-codestyle DEPENDS+= ${PYPKGPREFIX}-flakes>=2.2.0:../../devel/py-flakes DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6.0:../../devel/py-mccabe .include "../../lang/python/pyversion.mk" .if ${_PYTHON_VERSION} == 27 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 .endif .if ${_PYTHON_VERSION} < 38 DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata .endif BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock TEST_DEPENDS+= ${PYPKGPREFIX}-pylint-[0-9]*:../../devel/py-pylint TEST_DEPENDS+= ${PYPKGPREFIX}-test<5:../../devel/py-test USE_LANGUAGES= # none post-install: cd ${DESTDIR}${PREFIX}/bin && \ ${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE} do-test: cd ${WRKSRC} && pytest-${PYVERSSUFFIX} .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk"