git: f81111b7b696 - main - net-mgmt/py-napalm: Update to 4.0.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Fri, 22 Jul 2022 04:47:10 UTC
The branch main has been updated by kai:

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

commit f81111b7b696606183db11dfabd8a11272155b66
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-07-22 04:39:54 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-07-22 04:39:54 +0000

    net-mgmt/py-napalm: Update to 4.0.0
    
    Changelog:
    
    https://github.com/napalm-automation/napalm/releases/tag/4.0.0
    
    MFH:            No (feature release, requires newer version of NetMiko)
---
 net-mgmt/py-napalm/Makefile                     | 15 +++++++++------
 net-mgmt/py-napalm/distinfo                     |  6 +++---
 net-mgmt/py-napalm/files/patch-requirements.txt | 13 +++++++++++++
 3 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/net-mgmt/py-napalm/Makefile b/net-mgmt/py-napalm/Makefile
index cc9fe85e7e89..c953e1c382ce 100644
--- a/net-mgmt/py-napalm/Makefile
+++ b/net-mgmt/py-napalm/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	napalm
-DISTVERSION=	3.4.0
+DISTVERSION=	4.0.0
 CATEGORIES=	net-mgmt python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -12,18 +12,21 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}lxml>=4.3.0:devel/py-lxml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}textfsm>0:textproc/py-textfsm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}junos-eznc>=2.2.1:net-mgmt/py-junos-eznc@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}textfsm>=1.1.2:textproc/py-textfsm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}junos-eznc>=2.6.3:net-mgmt/py-junos-eznc@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ncclient>0:net-mgmt/py-ncclient@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}netaddr>0:net/py-netaddr@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}netmiko>=3.3.0<4.0.0:security/py-netmiko@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}netutils>=1.0.0:net-mgmt/py-netutils@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}netmiko>=4.0.0:security/py-netmiko@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}paramiko>=2.6.0:security/py-paramiko@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.7.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ttp>0:textproc/py-ttp@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ttp-templates>0:textproc/py-ttp-templates@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3.0:devel/py-typing-extensions@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyeapi>=0.8.2:net-mgmt/py-pyeapi@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}scp>0:security/py-scp@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}cffi>=1.11.3:devel/py-cffi@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ciscoconfparse>0:net-mgmt/py-ciscoconfparse@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}cffi>=1.11.3:devel/py-cffi@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=3.6.4:devel/py-pytest@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}mock>=2.0.0:devel/py-mock@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ddt>=1.2.0:devel/py-ddt@${PY_FLAVOR}
diff --git a/net-mgmt/py-napalm/distinfo b/net-mgmt/py-napalm/distinfo
index 47590444220e..636a654e1f4f 100644
--- a/net-mgmt/py-napalm/distinfo
+++ b/net-mgmt/py-napalm/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1648416025
-SHA256 (napalm-automation-napalm-3.4.0_GH0.tar.gz) = 1336fa71e1db50577405c309233ce1d594d95875c9ba3e4346eed0c54b8d4eb4
-SIZE (napalm-automation-napalm-3.4.0_GH0.tar.gz) = 1537499
+TIMESTAMP = 1658046980
+SHA256 (napalm-automation-napalm-4.0.0_GH0.tar.gz) = 439df0c08b2dcfaab240bb03e92ba3bd0b09f7861e7c1d97c9b5ccb26d5c240a
+SIZE (napalm-automation-napalm-4.0.0_GH0.tar.gz) = 1559011
diff --git a/net-mgmt/py-napalm/files/patch-requirements.txt b/net-mgmt/py-napalm/files/patch-requirements.txt
new file mode 100644
index 000000000000..fba0a4ea1690
--- /dev/null
+++ b/net-mgmt/py-napalm/files/patch-requirements.txt
@@ -0,0 +1,13 @@
+Relax requirements for newer versions of TextFSM.
+
+--- requirements.txt.orig	2022-07-22 03:43:11 UTC
++++ requirements.txt
+@@ -3,7 +3,7 @@ future
+ paramiko>=2.6.0
+ requests>=2.7.0
+ future
+-textfsm<=1.1.2
++textfsm>=1.1.2
+ jinja2
+ netaddr
+ pyYAML