18 fido2_0 = fido2.overridePythonAttrs (oldAttrs: rec {
21 inherit (oldAttrs) pname;
23 hash = "sha256-tF6JphCc/Lfxu1E3dqotZAjpXEgi+DolORi5RAg0Zuw=";
26 substituteInPlace setup.py test/test_attestation.py \
27 --replace-fail "distutils.version" "setuptools._distutils.version"
29 build-system = [ setuptools-scm ];
30 dependencies = oldAttrs.dependencies ++ [ six ];
37 buildPythonPackage rec {
38 pname = "ctap-keyring-device";
43 inherit version pname;
44 hash = "sha256-pEJkuz0wxKt2PkowmLE2YC+HPYa2ZiENK7FAW14Ec/Y=";
47 # removing optional dependency needing pyobjc
49 substituteInPlace pytest.ini \
50 --replace "--flake8 --black --cov" ""
54 # This is a darwin requirement missing pyobjc
55 "pyobjc-framework-LocalAuthentication"
58 build-system = [ setuptools-scm ];
66 pythonImportsCheck = [ "ctap_keyring_device" ];
68 nativeCheckInputs = [ pytestCheckHook ];
71 # Disabled tests that needs pyobjc or windows
72 "touch_id_ctap_user_verifier"
73 "windows_hello_ctap_user_verifier"
77 description = "CTAP (client-to-authenticator-protocol) device backed by python's keyring library";
78 homepage = "https://github.com/dany74q/ctap-keyring-device";
79 license = licenses.mit;
80 maintainers = with maintainers; [ jbgosselin ];