1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 asn1crypto,
7 cbor2,
8 cryptography,
9 pythonOlder,
10 pyopenssl,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "webauthn";
16 version = "2.7.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "duo-labs";
23 repo = "py_webauthn";
24 tag = "v${version}";
25 hash = "sha256-aZDptKJPFU6Oo4vKkIWkqkJ5ogDe5x3v7PAQRixWFe4=";
26 };
27
28 build-system = [ setuptools ];
29
30 propagatedBuildInputs = [
31 asn1crypto
32 cbor2
33 cryptography
34 pyopenssl
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "webauthn" ];
40
41 meta = with lib; {
42 description = "Implementation of the WebAuthn API";
43 homepage = "https://github.com/duo-labs/py_webauthn";
44 changelog = "https://github.com/duo-labs/py_webauthn/blob/${src.tag}/CHANGELOG.md";
45 license = licenses.bsd3;
46 maintainers = [ ];
47 };
48}