diff --git a/get-telnetlib-from-netmiko.patch b/get-telnetlib-from-netmiko.patch new file mode 100644 index 0000000..ea3deed --- /dev/null +++ b/get-telnetlib-from-netmiko.patch @@ -0,0 +1,23 @@ +Index: py-junos-eznc-2.7.2/lib/jnpr/junos/transport/tty_telnet.py +=================================================================== +--- py-junos-eznc-2.7.2.orig/lib/jnpr/junos/transport/tty_telnet.py ++++ py-junos-eznc-2.7.2/lib/jnpr/junos/transport/tty_telnet.py +@@ -1,5 +1,5 @@ + from time import sleep +-import telnetlib ++from netmiko._telnetlib import telnetlib + import logging + import sys + +Index: py-junos-eznc-2.7.2/requirements.txt +=================================================================== +--- py-junos-eznc-2.7.2.orig/requirements.txt ++++ py-junos-eznc-2.7.2/requirements.txt +@@ -5,6 +5,7 @@ scp>=0.7.0 + jinja2>=2.7.1 + PyYAML>=5.1 + paramiko>=3.5.0 ++netmiko>=4.4.0 + pyserial + pyparsing + transitions diff --git a/python-junos-eznc.changes b/python-junos-eznc.changes index 2d465cc..6f85e8f 100644 --- a/python-junos-eznc.changes +++ b/python-junos-eznc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 27 08:56:52 UTC 2024 - Nico Krapp + +- Add get-telnetlib-from-netmiko.patch, telnetlib was removed from + the standardlibrary in Python 3.13 + * https://github.com/Juniper/py-junos-eznc/issues/1324 + ------------------------------------------------------------------- Mon Oct 28 05:41:18 UTC 2024 - Steve Kowalik diff --git a/python-junos-eznc.spec b/python-junos-eznc.spec index c413578..52474be 100644 --- a/python-junos-eznc.spec +++ b/python-junos-eznc.spec @@ -29,10 +29,13 @@ Source: https://github.com/Juniper/py-junos-eznc/archive/%{version}.tar. Patch0: python-junos-eznc-remove-yamlordereddictloader.patch # PATCH-FIX-UPSTREAM gh#Juniper/py-junos-eznc#1307 Don't require six Patch1: no-six.patch +# PATCH-FIX-UPSTREAM gh#Juniper/py-junos-eznc#1324 telnetlib not in py313 anymore +Patch2: get-telnetlib-from-netmiko.patch BuildRequires: %{python_module Jinja2 >= 2.7.1} BuildRequires: %{python_module PyYAML >= 5.1} BuildRequires: %{python_module lxml >= 3.2.4} BuildRequires: %{python_module ncclient >= 0.6.15} +BuildRequires: %{python_module netmiko >= 4.4.0} BuildRequires: %{python_module nose2} BuildRequires: %{python_module ntc-templates} BuildRequires: %{python_module paramiko >= 1.15.2} @@ -50,6 +53,7 @@ Requires: python-Jinja2 >= 2.7.1 Requires: python-PyYAML >= 5.1 Requires: python-lxml >= 3.2.4 Requires: python-ncclient >= 0.6.15 +Requires: python-netmiko >= 4.4.0 Requires: python-paramiko >= 1.15.2 Requires: python-pyparsing Requires: python-pyserial