git: c9f8ac2c3c0d - main - www/py-requests-cache: Allow build with py-attrs 22.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 10:32:43 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c9f8ac2c3c0d88d023246500aadf8ddeca9bf069

commit c9f8ac2c3c0d88d023246500aadf8ddeca9bf069
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:25:05 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:25:05 +0000

    www/py-requests-cache: Allow build with py-attrs 22.1.0
    
    - Bump PORTREVISION for package change
---
 www/py-requests-cache/Makefile             |  3 ++-
 www/py-requests-cache/files/patch-setup.py | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

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',