pkgsrc/devel/py-importlib-metadata/Makefile
adam ef1cd7ecfb py-importlib-metadata: updated to 1.5.0
v1.5.0
Additional performance optimizations in FastPath now saves an additional 20% on a typical call.
Correct for issue where PyOxidizer finder has no __module__ attribute.
2020-02-10 18:29:38 +00:00

33 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2020/02/10 18:29:38 adam Exp $
DISTNAME= importlib_metadata-1.5.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=i/importlib-metadata/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://importlib-metadata.readthedocs.io/
COMMENT= Read metadata from Python packages
LICENSE= apache-2.0
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
DEPENDS+= ${PYPKGPREFIX}-zipp>=0.5:../../archivers/py-zipp
TEST_DEPENDS+= ${PYPKGPREFIX}-fakefs-[0-9]*:../../devel/py-fakefs
TEST_DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+= ${PYPKGPREFIX}-configparser>=3.5:../../devel/py-configparser
DEPENDS+= ${PYPKGPREFIX}-contextlib2-[0-9]*:../../devel/py-contextlib2
DEPENDS+= ${PYPKGPREFIX}-pathlib2-[0-9]*:../../devel/py-pathlib2
.endif
.if ${_PYTHON_VERSION} < 37
TEST_DEPENDS+= ${PYPKGPREFIX}-importlib-resources-[0-9]*:../../devel/py-importlib-resources
.endif
USE_LANGUAGES= # none
post-extract:
${FIND} ${WRKSRC} -type f -exec ${CHMOD} go-w {} +
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"