pkgsrc/devel/py-radon/Makefile
adam e972a2511f py-radon: updated to 4.5.2
4.5.2:
- Add back `flake8-polyfill` dependency because conditional extra does not work
  as intended
2021-05-24 09:15:46 +00:00

33 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2021/05/24 09:15:46 adam Exp $
DISTNAME= radon-4.5.2
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
DEPENDS+= ${PYPKGPREFIX}-mando>=0.6:../../devel/py-mando
DEPENDS+= ${PYPKGPREFIX}-colorama>=0.4.1:../../comms/py-colorama
DEPENDS+= ${PYPKGPREFIX}-flake8-polyfill-[0-9]*:../../devel/py-flake8-polyfill
DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-tox-[0-9]*:../../devel/py-tox
PYTHON_VERSIONED_DEPENDENCIES= test:test
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 "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"