| @@ -1,30 +1,37 @@ | | | @@ -1,30 +1,37 @@ |
1 | # $NetBSD: Makefile,v 1.45 2022/01/04 20:55:29 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.46 2022/01/27 11:57:26 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= google-api-python-client-2.15.0 | | 3 | DISTNAME= google-api-python-client-2.15.0 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= www python | | 6 | CATEGORIES= www python |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=g/google-api-python-client/} | | 7 | MASTER_SITES= ${MASTER_SITE_PYPI:=g/google-api-python-client/} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://github.com/googleapis/google-api-python-client | | 10 | HOMEPAGE= https://github.com/googleapis/google-api-python-client |
11 | COMMENT= Python client library for Google's discovery based APIs | | 11 | COMMENT= Python client library for Google's discovery based APIs |
12 | LICENSE= apache-2.0 | | 12 | LICENSE= apache-2.0 |
13 | | | 13 | |
14 | DEPENDS+= ${PYPKGPREFIX}-google-api-core>=1.21.0:../../devel/py-google-api-core | | 14 | DEPENDS+= ${PYPKGPREFIX}-google-api-core>=1.21.0:../../devel/py-google-api-core |
15 | DEPENDS+= ${PYPKGPREFIX}-google-auth>=1.16.0:../../security/py-google-auth | | 15 | DEPENDS+= ${PYPKGPREFIX}-google-auth>=1.16.0:../../security/py-google-auth |
16 | DEPENDS+= ${PYPKGPREFIX}-google-auth-httplib2>=0.1.0:../../security/py-google-auth-httplib2 | | 16 | DEPENDS+= ${PYPKGPREFIX}-google-auth-httplib2>=0.1.0:../../security/py-google-auth-httplib2 |
17 | DEPENDS+= ${PYPKGPREFIX}-httplib2>=0.15.0:../../www/py-httplib2 | | 17 | DEPENDS+= ${PYPKGPREFIX}-httplib2>=0.15.0:../../www/py-httplib2 |
18 | DEPENDS+= ${PYPKGPREFIX}-six>=1.13.0:../../lang/py-six | | 18 | DEPENDS+= ${PYPKGPREFIX}-six>=1.13.0:../../lang/py-six |
19 | DEPENDS+= ${PYPKGPREFIX}-uritemplate>=3.0.0:../../textproc/py-uritemplate | | 19 | DEPENDS+= ${PYPKGPREFIX}-uritemplate>=3.0.0:../../textproc/py-uritemplate |
20 | TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock | | 20 | TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock |
21 | TEST_DEPENDS+= ${PYPKGPREFIX}-oauth2client-[0-9]*:../../security/py-oauth2client | | 21 | TEST_DEPENDS+= ${PYPKGPREFIX}-oauth2client-[0-9]*:../../security/py-oauth2client |
22 | TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized-[0-9]*:../../devel/py-parameterized | | 22 | TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized-[0-9]*:../../devel/py-parameterized |
23 | TEST_DEPENDS+= ${PYPKGPREFIX}-unittest2-[0-9]*:../../devel/py-unittest2 | | | |
24 | | | 23 | |
25 | USE_LANGUAGES= # none | | 24 | USE_LANGUAGES= # none |
26 | | | 25 | |
27 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | | 26 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
28 | | | 27 | |
| | | 28 | # unittest2 is a replacement for python 2.x for unittest; this package |
| | | 29 | # is limited to python 3.x anyway, so use unittest directly |
| | | 30 | SUBST_CLASSES+= unittest |
| | | 31 | SUBST_STAGE.unittest= pre-build |
| | | 32 | SUBST_MESSAGE.unittest= Removing unittest2 dependency |
| | | 33 | SUBST_SED.unittest+= -e 's/import unittest2 as unittest/import unittest/' |
| | | 34 | SUBST_FILES.unittest+= tests/test*.py |
| | | 35 | |
29 | .include "../../lang/python/egg.mk" | | 36 | .include "../../lang/python/egg.mk" |
30 | .include "../../mk/bsd.pkg.mk" | | 37 | .include "../../mk/bsd.pkg.mk" |