depot/third_party/nixpkgs/pkgs/development/python-modules/django-otp-webauthn/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
917 B
Nix

{
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";
hash = "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/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ erictapen ];
};
}