1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 django,
7 django-otp,
8 djangorestframework,
9 webauthn,
10}:
11
12buildPythonPackage rec {
13 pname = "django-otp-webauthn";
14 version = "0.6.0";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit version;
19 pname = "django_otp_webauthn";
20 hash = "sha256-Exyao6i63S7czGAcZMULrNcnxjRNw21ufNFaxj9kkFs=";
21 };
22
23 build-system = [ hatchling ];
24
25 dependencies = [
26 django
27 django-otp
28 djangorestframework
29 webauthn
30 ];
31
32 # Tests are on the roadmap, but not yet implemented
33
34 pythonImportsCheck = [ "django_otp_webauthn" ];
35
36 meta = with lib; {
37 description = "Passkey support for Django";
38 homepage = "https://github.com/Stormbase/django-otp-webauthn";
39 changelog = "https://github.com/Stormbase/django-otp-webauthn/blob/v${version}/CHANGELOG.md";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ erictapen ];
42 };
43
44}