pkgsrc/www/py-google-apitools/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.10 2022/01/05 15:41:29 wiz Exp $
DISTNAME= google-apitools-0.5.32
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=g/google-apitools/}
MAINTAINER= bsiegert@NetBSD.org
HOMEPAGE= https://github.com/google/apitools
COMMENT= Client libraries for humans
LICENSE= apache-2.0
DEPENDS+= ${PYPKGPREFIX}-fasteners>=0.14:../../devel/py-fasteners
DEPENDS+= ${PYPKGPREFIX}-gflags>=3.0.6:../../devel/py-gflags
DEPENDS+= ${PYPKGPREFIX}-httplib2>=0.8:../../www/py-httplib2
DEPENDS+= ${PYPKGPREFIX}-oauth2client>=2.1.0:../../security/py-oauth2client
DEPENDS+= ${PYPKGPREFIX}-six>=1.12.0:../../lang/py-six
TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=1.0.1:../../devel/py-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-gflags
USE_PKG_RESOURCES= yes
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} gen_client gen_client-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC} && nosetests-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"