git: 6f24ea5a1a66 - main - www/py-requests-cache93: Allow build with py-attrs 22.1.0

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

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

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

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

diff --git a/www/py-requests-cache93/Makefile b/www/py-requests-cache93/Makefile
index 45845b0f89ab..841a75d5a78e 100644
--- a/www/py-requests-cache93/Makefile
+++ b/www/py-requests-cache93/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	requests-cache
 PORTVERSION=	0.9.3
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,7 +13,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: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-cache93/files/patch-setup.py b/www/py-requests-cache93/files/patch-setup.py
new file mode 100644
index 000000000000..6cadfb7e8e49
--- /dev/null
+++ b/www/py-requests-cache93/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',