1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, asn1crypto 5, cbor2 6, pythonOlder 7, pydantic 8, pyopenssl 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "webauthn"; 14 version = "1.6.0"; 15 disabled = pythonOlder "3"; 16 17 src = fetchFromGitHub { 18 owner = "duo-labs"; 19 repo = "py_webauthn"; 20 rev = "refs/tags/v${version}"; 21 sha256 = "sha256-Ts0zKnQg1EaBNB9xQmzOpEVwDSFwHNjIhEP1jTwEOFI="; 22 }; 23 24 propagatedBuildInputs = [ 25 asn1crypto 26 cbor2 27 pydantic 28 pyopenssl 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "webauthn" ]; 36 37 meta = with lib; { 38 homepage = "https://github.com/duo-labs/py_webauthn"; 39 description = "Implementation of the WebAuthn API"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ SuperSandro2000 ]; 42 }; 43}