From 1a7424957dbe50c68a49145f95955984c4fa118e Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Tue, 8 Mar 2022 20:51:35 -0500 Subject: gnu: python-robotframework-sshlibrary: Patch for RobotFramework 5 compatibility. * gnu/packages/patches/python-robotframework-sshlibrary-rf5-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/python-xyz.scm (python-robotframework-sshlibrary): Apply it. --- .../python-robotframework-sshlibrary-rf5-compat.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gnu/packages/patches/python-robotframework-sshlibrary-rf5-compat.patch (limited to 'gnu/packages/patches') diff --git a/gnu/packages/patches/python-robotframework-sshlibrary-rf5-compat.patch b/gnu/packages/patches/python-robotframework-sshlibrary-rf5-compat.patch new file mode 100644 index 0000000000..d867d4cabb --- /dev/null +++ b/gnu/packages/patches/python-robotframework-sshlibrary-rf5-compat.patch @@ -0,0 +1,19 @@ +This patches add compatibility for the forthcoming RobotFramework 5. + +Taken from: https://github.com/robotframework/SSHLibrary/pull/403. +diff --git a/src/SSHLibrary/pythonforward.py b/src/SSHLibrary/pythonforward.py +index 8b85997b7..607985cf4 100644 +--- a/src/SSHLibrary/pythonforward.py ++++ b/src/SSHLibrary/pythonforward.py +@@ -1,9 +1,9 @@ + import select + import socket + import threading +-from robot.utils import platform ++from robot.utils import PY2, WINDOWS + from .logger import logger +-if platform.PY2 and platform.WINDOWS: ++if PY2 and WINDOWS: + import win_inet_pton + try: + import SocketServer -- cgit v1.2.3