yubikey-manager-qt: fix detecting inserted yubikey
Fixes #353582 The upload functionality was removed in an upstream dependency, so importing the types failed and caused an error. See https://github.com/Yubico/yubikey-manager-qt/issues/364#issuecomment-2578318174
This commit is contained in:
@@ -23,6 +23,8 @@ mkDerivation rec {
|
||||
hash = "sha256-6bKeR3UX2DhXGcKJ1bxvT1aLTgCfc+aNo6ckE89NV+I=";
|
||||
};
|
||||
|
||||
patches = [ ./remove-upload-import.diff ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3.pkgs.wrapPython
|
||||
qmake
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
--- a/ykman-gui/py/yubikey.py 2025-01-08 19:42:20.058393985 +0100
|
||||
+++ b/ykman-gui/py/yubikey.py 2025-01-08 19:44:12.520364702 +0100
|
||||
@@ -50,12 +50,10 @@
|
||||
if int(ykman_v.split(".")[0] ) > 4:
|
||||
from yubikit.support import get_name
|
||||
from ykman.device import list_all_devices, scan_devices
|
||||
- from ykman.otp import (
|
||||
- _PrepareUploadFailed as PrepareUploadFailed
|
||||
- , _prepare_upload_key as prepare_upload_key, generate_static_pw)
|
||||
+ from ykman.otp import generate_static_pw
|
||||
else:
|
||||
from ykman import connect_to_device, scan_devices, get_name
|
||||
from ykman.otp import PrepareUploadFailed, prepare_upload_key, generate_static_pw
|
||||
|
||||
from fido2.ctap2 import Ctap2, ClientPin
|
||||
|
||||
Reference in New Issue
Block a user