--- yum-3.4.3/yum/misc.py.orig	2022-04-03 15:29:52.503864882 +1200
+++ yum-3.4.3/yum/misc.py	2022-04-03 15:34:05.399751174 +1200
@@ -26,7 +26,11 @@
     import lzma
     _available_compression.append('xz')
 except ImportError:
-    lzma = None
+    try:
+        from backports import lzma
+        _available_compression.append('xz')
+    except:
+        lzma = None
 
 from rpmUtils.miscutils import stringToVersion, flagToString
 from stat import *
