pkgsrc/devel/py-radon/Makefile
wiz 67e1f1a6bf python: egg.mk: add USE_PKG_RESOURCES flag
This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
2022-01-05 15:40:56 +00:00

36 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2022/01/05 15:41:07 wiz Exp $
DISTNAME= radon-4.5.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
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_PKG_RESOURCES= yes
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"