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,40 +1,41 @@ PORTNAME= pynetbox DISTVERSION= 7.3.3 +PORTREVISION= 1 CATEGORIES= net-mgmt python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= kai@FreeBSD.org COMMENT= NetBox API client library WWW= https://github.com/netbox-community/pynetbox 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} USES= python USE_PYTHON= autoplist concurrent distutils pytest # Skip integration tests as they require Docker and a checked out git repository PYTEST_IGNORED_TESTS= integration NO_ARCH= yes PORTDOCS= * OPTIONS_DEFINE= DOCS DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0<2.0.0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E" post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/build/sphinx/html && \ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ "! -name .buildinfo -and ! -name objects.inv") .include 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"],