pkgsrc/devel/py-radon/Makefile
adam 41421c15b4 py-radon: updated to 2.2.0
2.2.0:
* Add an option to show closures when Radon is used from flake8.
2018-01-14 08:24:10 +00:00

32 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2018/01/14 08:24:10 adam Exp $
DISTNAME= radon-2.2.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=r/radon/}
MAINTAINER= kamelderouiche@yahoo.com
HOMEPAGE= https://radon.readthedocs.org/
COMMENT= Code Metrics in Python
LICENSE= mit
# according to README, only mando is really necessary
DEPENDS+= ${PYPKGPREFIX}-mando>=0.6:../../devel/py-mando
# but these are in "requirements.txt"
DEPENDS+= ${PYPKGPREFIX}-colorama>=0.3:../../comms/py-colorama
DEPENDS+= ${PYPKGPREFIX}-flake8-polyfill-[0-9]*:../../devel/py-flake8-polyfill
# TEST_DEPENDS
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
BUILD_DEPENDS+= ${PYPKGPREFIX}-tox-[0-9]*:../../devel/py-tox
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} radon radon-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC}/radon/tests && ${SETENV} ${TEST_ENV} ${PYTHONBIN} run.py
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"