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,34 +1,35 @@ PORTNAME= requests-cache PORTVERSION= 0.9.5 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Transparent persistent cache for the requests library 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} \ ${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.5,1<2.0.0,1:net/py-urllib3@${PY_FLAVOR} USES= python:3.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes .include .if ${PYTHON_REL} < 31100 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}exceptiongroup>=1.0.0rc3:devel/py-exceptiongroup@${PY_FLAVOR} .endif do-test: cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v .include 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',