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.11.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "duo-labs"; 21 repo = "py_webauthn"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-+pp21rtwavtjj6ahG091xsJpsYOH3zpqU3xH2/YFXqY="; 24 }; 25 26 propagatedBuildInputs = [ 27 asn1crypto 28 cbor2 29 pydantic 30 pyopenssl 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "webauthn" 39 ]; 40 41 disabledTests = [ 42 # TypeError: X509StoreContextError.__init__() missing 1 required... 43 "test_throws_on_bad_root_cert" 44 ]; 45 46 meta = with lib; { 47 description = "Implementation of the WebAuthn API"; 48 homepage = "https://github.com/duo-labs/py_webauthn"; 49 changelog = "https://github.com/duo-labs/py_webauthn/blob/v${version}/CHANGELOG.md"; 50 license = licenses.bsd3; 51 maintainers = with maintainers; [ ]; 52 }; 53}