aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-08-27 10:25:05 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-08-27 10:25:05 +0000
commitc9f8ac2c3c0d88d023246500aadf8ddeca9bf069 (patch)
treec1de359b79bc1790275329df0fe16de5d8f631dd
parent2330838f130b718ceb1624ed74f7843295f20904 (diff)
downloadports-c9f8ac2c3c0d88d023246500aadf8ddeca9bf069.tar.gz
ports-c9f8ac2c3c0d88d023246500aadf8ddeca9bf069.zip
www/py-requests-cache: Allow build with py-attrs 22.1.0
- Bump PORTREVISION for package change
-rw-r--r--www/py-requests-cache/Makefile3
-rw-r--r--www/py-requests-cache/files/patch-setup.py11
2 files changed, 13 insertions, 1 deletions
diff --git a/www/py-requests-cache/Makefile b/www/py-requests-cache/Makefile
index 8504dc6aa841..78005afe7db0 100644
--- a/www/py-requests-cache/Makefile
+++ b/www/py-requests-cache/Makefile
@@ -1,5 +1,6 @@
PORTNAME= requests-cache
PORTVERSION= 0.9.5
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,7 +12,7 @@ LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.4<2.0.0:devel/py-appdirs@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}attrs>=21.2<22.0:devel/py-attrs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}attrs>=21.2:devel/py-attrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cattrs>=1.8<22.2.1:devel/py-cattrs@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.22<3.0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}url-normalize>=1.4<2.0:net/py-url-normalize@${PY_FLAVOR} \
diff --git a/www/py-requests-cache/files/patch-setup.py b/www/py-requests-cache/files/patch-setup.py
new file mode 100644
index 000000000000..9352e4674fa6
--- /dev/null
+++ b/www/py-requests-cache/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 1970-01-01 00:00:00 UTC
++++ setup.py
+@@ -12,7 +12,7 @@ package_data = \
+
+ install_requires = \
+ ['appdirs>=1.4.4,<2.0.0',
+- 'attrs>=21.2,<22.0',
++ 'attrs>=21.2',
+ 'cattrs>=1.8,<=22.2',
+ 'requests>=2.22,<3.0',
+ 'url-normalize>=1.4,<2.0',