Files
nixpkgs/pkgs/development/python-modules/django-two-factor-auth/default.nix
T
Martin Weinelt 5c3ce53cc0 python3Packages.django-two-factor-auth: 1.17.0 -> 1.18.1
https://github.com/jazzband/django-two-factor-auth/releases/tag/1.18.1

This commit was automatically generated using update-python-libraries.
2026-02-01 16:43:11 +01:00

73 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
django,
django-formtools,
django-otp,
django-phonenumber-field,
fetchFromGitHub,
phonenumbers,
pydantic,
qrcode,
setuptools-scm,
twilio,
webauthn,
}:
buildPythonPackage rec {
pname = "django-two-factor-auth";
version = "1.18.1";
pyproject = true;
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-two-factor-auth";
tag = version;
hash = "sha256-rhcEVmh5Am1TKO+01rb9VBKJdFVa8uRdTimEKq2pA7w=";
};
build-system = [ setuptools-scm ];
pythonRelaxDeps = [
"django-phonenumber-field"
"qrcode"
];
dependencies = [
django
django-formtools
django-otp
django-phonenumber-field
qrcode
];
optional-dependencies = {
call = [ twilio ];
sms = [ twilio ];
webauthn = [
pydantic
webauthn
];
# yubikey = [
# django-otp-yubikey
# ];
phonenumbers = [ phonenumbers ];
# phonenumberslite = [
# phonenumberslite
# ];
};
# Tests require internet connection
doCheck = false;
pythonImportsCheck = [ "two_factor" ];
meta = {
description = "Complete Two-Factor Authentication for Django";
homepage = "https://github.com/jazzband/django-two-factor-auth";
changelog = "https://github.com/jazzband/django-two-factor-auth/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ derdennisop ];
};
}