git: bbee8306baf7 - main - net-mgmt/py-pynetbox: Allow build with py-packaging 24.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 20 Apr 2024 18:32:09 UTC
The branch main has been updated by sunpoet:

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

commit bbee8306baf7e7054b13d33faafe1a3d35d65533
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-20 18:29:29 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-20 18:29:29 +0000

    net-mgmt/py-pynetbox: Allow build with py-packaging 24.0+
    
    - Bump PORTREVISION for package change
    
    Obtained from:  https://github.com/netbox-community/pynetbox/pull/608
---
 net-mgmt/py-pynetbox/Makefile              |  3 ++-
 net-mgmt/py-pynetbox/files/patch-packaging | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/net-mgmt/py-pynetbox/Makefile b/net-mgmt/py-pynetbox/Makefile
index 5f73b94b2556..1235f25ac282 100644
--- a/net-mgmt/py-pynetbox/Makefile
+++ b/net-mgmt/py-pynetbox/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pynetbox
 DISTVERSION=	7.3.3
+PORTREVISION=	1
 CATEGORIES=	net-mgmt python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,7 +13,7 @@ LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>0<24:devel/py-packaging@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.20<3:www/py-requests@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
 
diff --git a/net-mgmt/py-pynetbox/files/patch-packaging b/net-mgmt/py-pynetbox/files/patch-packaging
new file mode 100644
index 000000000000..c956f34f9395
--- /dev/null
+++ b/net-mgmt/py-pynetbox/files/patch-packaging
@@ -0,0 +1,13 @@
+Obtained from:	https://github.com/netbox-community/pynetbox/pull/608
+
+--- setup.py.orig	2024-01-05 23:18:34 UTC
++++ setup.py
+@@ -15,7 +15,7 @@ setup(
+     long_description_content_type='text/markdown',
+     install_requires=[
+         "requests>=2.20.0,<3.0",
+-        "packaging<24.0"
++        "packaging"
+     ],
+     zip_safe=False,
+     keywords=["netbox"],