358dbd59a3
3.8.4 Bugs Fixed - Fix multiprocessing errors on platforms without ``sem_open`` syscall. - Fix skipping of physical checks on the last line of a file which does not end in a newline.
40 lines
1.4 KiB
Makefile
40 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.35 2020/10/03 06:02:18 adam Exp $
|
|
|
|
DISTNAME= flake8-3.8.4
|
|
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
|
|
|
|
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"
|