diff --git a/pkgs/development/python-modules/django-otp-webauthn/default.nix b/pkgs/development/python-modules/django-otp-webauthn/default.nix new file mode 100644 index 000000000000..870e36cbcb4e --- /dev/null +++ b/pkgs/development/python-modules/django-otp-webauthn/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + django, + django-otp, + djangorestframework, + webauthn, +}: + +buildPythonPackage rec { + pname = "django-otp-webauthn"; + version = "0.3.0"; + pyproject = true; + + src = fetchPypi { + inherit version; + pname = "django_otp_webauthn"; + sha256 = "sha256-+Y46/PDeXL9zayoZykaU63faQmnLHzYPmqJJeRBx+hs="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + django + django-otp + djangorestframework + webauthn + ]; + + # Tests are on the roadmap, but not yet implemented + + pythonImportsCheck = [ "django_otp_webauthn" ]; + + meta = with lib; { + description = "Passkey support for Django"; + homepage = "https://github.com/Stormbase/django-otp-webauthn"; + changelog = "https://github.com/Stormbase/django-otp-webauthn/blob/main/CHANGELOG.md"; + license = licenses.bsd3; + maintainers = with maintainers; [ erictapen ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fe79207265f3..02fb2552e43d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3395,6 +3395,8 @@ self: super: with self; { django-otp = callPackage ../development/python-modules/django-otp { }; + django-otp-webauthn = callPackage ../development/python-modules/django-otp-webauthn { }; + django-paintstore = callPackage ../development/python-modules/django-paintstore { }; django-parler = callPackage ../development/python-modules/django-parler { };