pkgsrc/devel/py-flake8/Makefile
adam bb3fe435e9 py-flake8: updated to 3.7.9
3.7.9:
Bugs Fixed
- Disable multiprocessing when the multiprocessing method is ``spawn`` (such
  as on macos in python3.8)
2019-11-05 08:58:17 +00:00

39 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2019/11/05 08:58:17 adam Exp $
DISTNAME= flake8-3.7.9
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.5.0:../../devel/py-codestyle
DEPENDS+= ${PYPKGPREFIX}-entrypoints>=0.3:../../devel/py-entrypoints
DEPENDS+= ${PYPKGPREFIX}-flakes>=2.1.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
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-[0-9]*:../../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"