git: 7de51112c03d - main - net/py-aiocoap: Update to 0.4.17

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 09 Dec 2025 11:25:57 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7de51112c03d11de208786d70bc70c53d0611396

commit 7de51112c03d11de208786d70bc70c53d0611396
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-12-09 06:40:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-12-09 11:21:36 +0000

    net/py-aiocoap: Update to 0.4.17
    
    - Update CATEGORIES
    - Update LICENSE
    - Add LICENSE_FILE
    - Convert to USE_PYTHON=pep517
    - Add NO_ARCH
    - Update pkg-descr
    - Take maintainership
    
    Changes:        https://codeberg.org/aiocoap/aiocoap/src/branch/main/NEWS.rst
---
 net/py-aiocoap/Makefile                   | 20 ++++++++++++++------
 net/py-aiocoap/distinfo                   |  6 +++---
 net/py-aiocoap/files/patch-pyproject.toml | 23 +++++++++++++++++++++++
 net/py-aiocoap/pkg-descr                  |  7 ++-----
 4 files changed, 42 insertions(+), 14 deletions(-)

diff --git a/net/py-aiocoap/Makefile b/net/py-aiocoap/Makefile
index b2e407742605..914d89d938cd 100644
--- a/net/py-aiocoap/Makefile
+++ b/net/py-aiocoap/Makefile
@@ -1,17 +1,25 @@
 PORTNAME=	aiocoap
-DISTVERSION=	0.4.7
-PORTREVISION=	1
-CATEGORIES=	net
+PORTVERSION=	0.4.17
+CATEGORIES=	net python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Python CoAP library
-WWW=		https://github.com/chrysn/aiocoap
+WWW=		https://aiocoap.readthedocs.io/en/latest/ \
+		https://codeberg.org/aiocoap/aiocoap
 
-LICENSE=	MIT
+LICENSE=	BSD3CLAUSE MIT
+LICENSE_COMB=	dual
+LICENSE_FILE_BSD3CLAUS=	${WRKSRC}/LICENSES/BSD-3-Clause.txt
+LICENSE_FILE_MIT=	${WRKSRC}/LICENSES/MIT.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
 
 .include <bsd.port.mk>
diff --git a/net/py-aiocoap/distinfo b/net/py-aiocoap/distinfo
index 917855068628..d721d7031e72 100644
--- a/net/py-aiocoap/distinfo
+++ b/net/py-aiocoap/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1682740254
-SHA256 (aiocoap-0.4.7.tar.gz) = 90f3bcaffd454f5421d3ad55ddbe3fe10a686d4b9f3c4445d427b130493a96a4
-SIZE (aiocoap-0.4.7.tar.gz) = 265972
+TIMESTAMP = 1765032810
+SHA256 (aiocoap-0.4.17.tar.gz) = 464c8d2b85ec1ef435dabeaa3fb6c8256b40fadfe6ce4ca83b93acb8d555f436
+SIZE (aiocoap-0.4.17.tar.gz) = 313536
diff --git a/net/py-aiocoap/files/patch-pyproject.toml b/net/py-aiocoap/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b57c57f0df6f
--- /dev/null
+++ b/net/py-aiocoap/files/patch-pyproject.toml
@@ -0,0 +1,23 @@
+--- pyproject.toml.orig	2025-11-05 01:21:23 UTC
++++ pyproject.toml
+@@ -2,7 +2,7 @@
+ # SPDX-License-Identifier: MIT
+ 
+ [build-system]
+-requires = [ "setuptools >= 77.0" ]
++requires = [ "setuptools >= 61.0" ]
+ build-backend = "setuptools.build_meta"
+  
+ [project]
+@@ -13,10 +13,7 @@ authors = [
+     { name = "Christian Amsüss", email = "chrysn@fsfe.org" },
+     { name = "the aiocoap contributors" },
+ ]
+-license = "MIT AND BSD-3-Clause"
+-license-files = [
+-    "LICENSES/*",
+-]
++license = { text = "MIT AND BSD-3-Clause" }
+ keywords = [ "coap", "asyncio", "iot" ]
+ classifiers= [
+     "Development Status :: 5 - Production/Stable",
diff --git a/net/py-aiocoap/pkg-descr b/net/py-aiocoap/pkg-descr
index 75e737c2e560..f895d5a219b2 100644
--- a/net/py-aiocoap/pkg-descr
+++ b/net/py-aiocoap/pkg-descr
@@ -1,9 +1,6 @@
 The aiocoap package is an implementation of CoAP, the Constrained Application
-Protocol.
+Protocol. It facilitates writing applications that talk to network enabled
+embedded ("IoT" / "Internet of Things") devices.
 
 It is written in Python 3 using its native asyncio methods to facilitate
 concurrent operations while maintaining an easy to use interface.
-
-aiocoap is originally based on txThings. If you want to use CoAP in your
-existing Twisted application, or can not migrate to Python 3 yet, that is
-probably more useful to you than aiocoap.