git: 2e0c9a987c52 - main - security/py-authlib: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 14 Dec 2023 06:06:34 UTC
The branch main has been updated by sunpoet:

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

commit 2e0c9a987c52e630a96a99824027b00f8606d5c3
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-14 05:36:58 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-14 05:48:32 +0000

    security/py-authlib: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 security/py-authlib/Makefile             |  6 +++++-
 security/py-authlib/files/patch-setup.py | 11 +++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/security/py-authlib/Makefile b/security/py-authlib/Makefile
index a086c4cb20ab..8502331290e3 100644
--- a/security/py-authlib/Makefile
+++ b/security/py-authlib/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	authlib
 PORTVERSION=	1.2.1
+PORTREVISION=	1
 CATEGORIES=	security python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +14,11 @@ WWW=		https://authlib.org/ \
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist concurrent cryptography distutils
+USE_PYTHON=	autoplist concurrent cryptography pep517
 
 NO_ARCH=	yes
 
diff --git a/security/py-authlib/files/patch-setup.py b/security/py-authlib/files/patch-setup.py
new file mode 100644
index 000000000000..42d579d55057
--- /dev/null
+++ b/security/py-authlib/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2022-12-06 07:30:31 UTC
++++ setup.py
+@@ -3,7 +3,7 @@ from setuptools import setup
+ # Metadata goes in setup.cfg. These are here for GitHub's dependency graph.
+ 
+ setup(
+-    name="Authlib",
++    name="authlib",
+     install_requires=[
+         "cryptography>=3.2",
+     ],