py-importlib-resources: limit to python 3

Fix setuptools_scm dependency, only needed at build time

Bump PKGREVISION
This commit is contained in:
wiz 2022-07-12 09:18:36 +00:00
parent ee00830413
commit fdef639712

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.10 2022/01/13 19:31:23 wiz Exp $
# $NetBSD: Makefile,v 1.11 2022/07/12 09:18:36 wiz Exp $
DISTNAME= importlib_resources-3.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=i/importlib_resources/}
@ -11,20 +11,17 @@ HOMEPAGE= https://importlib-resources.readthedocs.io/
COMMENT= Read resources from Python packages
LICENSE= apache-2.0
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+= ${PYPKGPREFIX}-contextlib2-[0-9]*:../../devel/py-contextlib2
DEPENDS+= ${PYPKGPREFIX}-pathlib2-[0-9]*:../../devel/py-pathlib2
DEPENDS+= ${PYPKGPREFIX}-singledispatch-[0-9]*:../../devel/py-singledispatch
DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
.endif
.if ${_PYTHON_VERSION} < 38
PYTHON_VERSIONED_DEPENDENCIES+= zipp
DEPENDS+= ${PYPKGPREFIX}-zipp-[0-9]*:../../archivers/py-zipp
.endif
PYTHON_VERSIONED_DEPENDENCIES+= setuptools_scm
USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"