summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2022-01-27 11:57:26 +0000
committerwiz <wiz@pkgsrc.org>2022-01-27 11:57:26 +0000
commit86f9229b8242ac115674a9f593c7e6dd3a06c5d8 (patch)
tree84f948b05c0fd115afdecc4113d5fc122910a269 /www
parent5104e3b3902194c43fd70b5481a43ef245da207a (diff)
downloadpkgsrc-86f9229b8242ac115674a9f593c7e6dd3a06c5d8.tar.gz
py-google-api-python-client: bump PKGREVISION
relax restrictions on uritemplate and remove test dependency on py-unittest2
Diffstat (limited to 'www')
-rw-r--r--www/py-google-api-python-client/Makefile13
-rw-r--r--www/py-google-api-python-client/distinfo3
-rw-r--r--www/py-google-api-python-client/patches/patch-setup.py15
3 files changed, 27 insertions, 4 deletions
diff --git a/www/py-google-api-python-client/Makefile b/www/py-google-api-python-client/Makefile
index f8f82dc38b4..b56da76d0d4 100644
--- a/www/py-google-api-python-client/Makefile
+++ b/www/py-google-api-python-client/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.45 2022/01/04 20:55:29 wiz Exp $
+# $NetBSD: Makefile,v 1.46 2022/01/27 11:57:26 wiz Exp $
DISTNAME= google-api-python-client-2.15.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=g/google-api-python-client/}
@@ -20,11 +20,18 @@ DEPENDS+= ${PYPKGPREFIX}-uritemplate>=3.0.0:../../textproc/py-uritemplate
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-oauth2client-[0-9]*:../../security/py-oauth2client
TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized-[0-9]*:../../devel/py-parameterized
-TEST_DEPENDS+= ${PYPKGPREFIX}-unittest2-[0-9]*:../../devel/py-unittest2
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
+# unittest2 is a replacement for python 2.x for unittest; this package
+# is limited to python 3.x anyway, so use unittest directly
+SUBST_CLASSES+= unittest
+SUBST_STAGE.unittest= pre-build
+SUBST_MESSAGE.unittest= Removing unittest2 dependency
+SUBST_SED.unittest+= -e 's/import unittest2 as unittest/import unittest/'
+SUBST_FILES.unittest+= tests/test*.py
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-google-api-python-client/distinfo b/www/py-google-api-python-client/distinfo
index 38941bf6292..2e34324f273 100644
--- a/www/py-google-api-python-client/distinfo
+++ b/www/py-google-api-python-client/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.39 2021/10/26 11:30:40 nia Exp $
+$NetBSD: distinfo,v 1.40 2022/01/27 11:57:26 wiz Exp $
BLAKE2s (google-api-python-client-2.15.0.tar.gz) = 6b37f5dac5d662b4d52cdc827c4aa8daedce06b197eeb437d53bf4edb984fa12
SHA512 (google-api-python-client-2.15.0.tar.gz) = aa69866b5c67fe1b1af2e2dc6b2117a861c5cc000a17d24283bd57aa55e6a98bf9ffc9002d410ffdf0c4984d0fd9c46a112a73adc968495500b848f02853af6a
Size (google-api-python-client-2.15.0.tar.gz) = 6832207 bytes
+SHA1 (patch-setup.py) = 27e3575c1976047ad3feb08e1e9b34e69955fd2c
diff --git a/www/py-google-api-python-client/patches/patch-setup.py b/www/py-google-api-python-client/patches/patch-setup.py
new file mode 100644
index 00000000000..406f66c82b5
--- /dev/null
+++ b/www/py-google-api-python-client/patches/patch-setup.py
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2022/01/27 11:57:26 wiz Exp $
+
+Relax restrictions.
+
+--- setup.py.orig 2021-07-27 10:49:04.000000000 +0000
++++ setup.py
+@@ -42,7 +42,7 @@ install_requires = [
+ # Until this issue is closed
+ # https://github.com/googleapis/google-cloud-python/issues/10566
+ "google-api-core>=1.21.0,<3.0.0dev",
+- "uritemplate>=3.0.0,<4dev",
++ "uritemplate>=3.0.0",
+ ]
+
+ package_root = os.path.abspath(os.path.dirname(__file__))