git: 11f14e7aa817 - main - www/py-django-recaptcha: Update to 4.1.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Tue, 10 Mar 2026 14:16:47 UTC
The branch main has been updated by kai:

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

commit 11f14e7aa8179a7c4c14c9387e926c0110e30d7b
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2026-03-10 14:16:00 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2026-03-10 14:16:00 +0000

    www/py-django-recaptcha: Update to 4.1.0
    
    * Switch to the PEP517 build framework.
    
    Changelog:
    
    https://github.com/django-recaptcha/django-recaptcha/releases/tag/4.1.0
    
    PR:             291707
    With hat:       python
---
 www/py-django-recaptcha/Makefile                   |  8 +++++---
 www/py-django-recaptcha/distinfo                   |  6 +++---
 www/py-django-recaptcha/files/patch-pyproject.toml | 11 +++++++++++
 3 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/www/py-django-recaptcha/Makefile b/www/py-django-recaptcha/Makefile
index e86f24e2beba..e331213cb2fb 100644
--- a/www/py-django-recaptcha/Makefile
+++ b/www/py-django-recaptcha/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	django-recaptcha
-PORTVERSION=	4.0.0
-PORTREVISION=	2
+PORTVERSION=	4.1.0
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	django_recaptcha-${PORTVERSION}
 
 MAINTAINER=	python@FreeBSD.org
 COMMENT=	Django reCAPTCHA form field/widget integration app
@@ -12,10 +12,12 @@ WWW=		https://github.com/django-recaptcha/django-recaptcha
 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}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django42>0:www/py-django42@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/www/py-django-recaptcha/distinfo b/www/py-django-recaptcha/distinfo
index 775d9182de06..65731aeed44c 100644
--- a/www/py-django-recaptcha/distinfo
+++ b/www/py-django-recaptcha/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1700760696
-SHA256 (django-recaptcha-4.0.0.tar.gz) = 5316438f97700c431d65351470d1255047e3f2cd9af0f2f13592b637dad9213e
-SIZE (django-recaptcha-4.0.0.tar.gz) = 22907
+TIMESTAMP = 1772101290
+SHA256 (django_recaptcha-4.1.0.tar.gz) = 73097b958733f65b729d4e4630c51fc2bf147aca6f026017d18898dfc25cb4c5
+SIZE (django_recaptcha-4.1.0.tar.gz) = 28676
diff --git a/www/py-django-recaptcha/files/patch-pyproject.toml b/www/py-django-recaptcha/files/patch-pyproject.toml
new file mode 100644
index 000000000000..62b9dcef789a
--- /dev/null
+++ b/www/py-django-recaptcha/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+Relax version requirements to enable build with older py-setuptools versions.
+
+--- pyproject.toml.orig	2026-02-26 10:28:55 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=64", "wheel"]
++requires = ["setuptools", "wheel"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]