pkgsrc/devel/py-importlib-metadata/Makefile
adam 1140448469 py-importlib-metadata: updated to 2.0.0
v2.0.0

importlib_metadata no longer presents a __version__ attribute. Consumers wishing to resolve the version of the package should query it directly with importlib_metadata.version('importlib-metadata').
2020-10-21 08:41:28 +00:00

36 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2020/10/21 08:41:28 adam Exp $
DISTNAME= importlib_metadata-2.0.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
TEST_DEPENDS+= ${PYPKGPREFIX}-fakefs-[0-9]*:../../devel/py-fakefs
TEST_DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
TEST_DEPENDS+= ${PYPKGPREFIX}-pep517-[0-9]*:../../devel/py-pep517
.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} < 39
TEST_DEPENDS+= ${PYPKGPREFIX}-importlib-resources>=1.3:../../devel/py-importlib-resources
.endif
PYTHON_VERSIONED_DEPENDENCIES+= zipp
USE_LANGUAGES= # none
post-extract:
${FIND} ${WRKSRC} -type f -exec ${CHMOD} go-w {} +
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"