public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-sshtunnel] paramiko-dss: Patch for DSSKey removal in paramiko; Fixes RHBZ#2485965
@ 2026-06-07  5:25 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-07  5:25 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-sshtunnel
Branch : paramiko-dss
Commit : 50a7dfc4e481bdc183e31d365653d2e58cf0a9a3
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-06-07T06:22:15+01:00
Stats  : +40/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-sshtunnel/c/50a7dfc4e481bdc183e31d365653d2e58cf0a9a3?branch=paramiko-dss

Log:
Patch for DSSKey removal in paramiko; Fixes RHBZ#2485965

---
diff --git a/300.patch b/300.patch
new file mode 100644
index 0000000..206486c
--- /dev/null
+++ b/300.patch
@@ -0,0 +1,30 @@
+From 7030d0c76c679c2934bdc27adc48ff5a84d1ae9a Mon Sep 17 00:00:00 2001
+From: lglines <lglines@fleetio.com>
+Date: Mon, 4 Aug 2025 08:58:11 -0600
+Subject: [PATCH] remove DSSKey, which is no longer supported by paramiko
+
+---
+ sshtunnel.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/sshtunnel.py b/sshtunnel.py
+index c48e330f..0e1668d4 100644
+--- a/sshtunnel.py
++++ b/sshtunnel.py
+@@ -1090,7 +1090,6 @@ def get_keys(logger=None, host_pkey_directories=None, allow_agent=False):
+             host_pkey_directories = [DEFAULT_SSH_DIRECTORY]
+ 
+         paramiko_key_types = {'rsa': paramiko.RSAKey,
+-                              'dsa': paramiko.DSSKey,
+                               'ecdsa': paramiko.ECDSAKey}
+         if hasattr(paramiko, 'Ed25519Key'):
+             # NOQA: new in paramiko>=2.2: http://docs.paramiko.org/en/stable/api/keys.html#module-paramiko.ed25519key
+@@ -1295,7 +1294,7 @@ def read_private_key_file(pkey_file,
+             paramiko.Pkey
+         """
+         ssh_pkey = None
+-        key_types = (paramiko.RSAKey, paramiko.DSSKey, paramiko.ECDSAKey)
++        key_types = (paramiko.RSAKey, paramiko.ECDSAKey)
+         if hasattr(paramiko, 'Ed25519Key'):
+             # NOQA: new in paramiko>=2.2: http://docs.paramiko.org/en/stable/api/keys.html#module-paramiko.ed25519key
+             key_types += (paramiko.Ed25519Key, )

diff --git a/python-sshtunnel.spec b/python-sshtunnel.spec
index 456dd9e..3ac165a 100644
--- a/python-sshtunnel.spec
+++ b/python-sshtunnel.spec
@@ -13,6 +13,16 @@ URL:            https://github.com/pahaz/sshtunnel
 Source0:        %{pypi_source}
 BuildArch:      noarch
 
+# remove DSSKey, which is no longer supported by paramiko
+# https://github.com/pahaz/sshtunnel/pull/300
+#
+# Fixes:
+#
+# requirements need update module 'paramiko' has no attribute 'DSSKey'
+# https://github.com/pahaz/sshtunnel/issues/302
+# https://bugzilla.redhat.com/show_bug.cgi?id=2485965
+Patch:          %{url}/pull/300.patch
+
 BuildRequires:  python3-devel
 
 %if %{with tests}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-07  5:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-07  5:25 [rpms/python-sshtunnel] paramiko-dss: Patch for DSSKey removal in paramiko; Fixes RHBZ#2485965 Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox