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