git: 346a262b144b - main - www/py-cherrypy: unbreak with python311

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 09 Nov 2022 04:13:24 UTC
The branch main has been updated by jbeich:

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

commit 346a262b144b1b8eb5eefc29b140b53ed8019888
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-11-08 17:41:02 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-11-09 04:12:06 +0000

    www/py-cherrypy: unbreak with python311
    
    >>> import cherrypy
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/local/lib/python3.11/site-packages/cherrypy/__init__.py", line 71, in <module>
        from . import _cpdispatch as dispatch
      File "/usr/local/lib/python3.11/site-packages/cherrypy/_cpdispatch.py", line 209, in <module>
        getargspec = inspect.getargspec
                     ^^^^^^^^^^^^^^^^^^
    AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
---
 www/py-cherrypy/Makefile | 5 ++++-
 www/py-cherrypy/distinfo | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/py-cherrypy/Makefile b/www/py-cherrypy/Makefile
index e68fbbf5cd37..cab7b605b679 100644
--- a/www/py-cherrypy/Makefile
+++ b/www/py-cherrypy/Makefile
@@ -1,11 +1,14 @@
 PORTNAME=	cherrypy
 PORTVERSION=	17.4.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	CherryPy-${PORTVERSION}
 
+PATCH_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/commit/
+PATCHFILES+=	8245a74aa4e0.patch:-p1 # https://github.com/cherrypy/cherrypy/pull/1945
+
 MAINTAINER=	nivit@FreeBSD.org
 COMMENT=	Pythonic, object-oriented web development framework
 WWW=		http://www.cherrypy.org/
diff --git a/www/py-cherrypy/distinfo b/www/py-cherrypy/distinfo
index 9db2b3c5c3e1..4bcd9f8d43b9 100644
--- a/www/py-cherrypy/distinfo
+++ b/www/py-cherrypy/distinfo
@@ -1,3 +1,5 @@
 TIMESTAMP = 1597378048
 SHA256 (CherryPy-17.4.2.tar.gz) = ef1619ad161f526745d4f0e4e517753d9d985814f1280e330661333d2ba05cdf
 SIZE (CherryPy-17.4.2.tar.gz) = 684366
+SHA256 (8245a74aa4e0.patch) = 8e3bbc5bf39cdb005a88568f22e0193ccbe96dcf4882c9a26bf38e2f74bd077c
+SIZE (8245a74aa4e0.patch) = 1114