diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-04-16 07:31:48 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-04-16 07:31:48 +0200 |
commit | a602da1b892282fa636bed6c43b883225e692e9a (patch) | |
tree | 3fefe5e96fbf4e92c9888308edf431b00a53355d /pkgs/development/python-modules/django-two-factor-auth | |
parent | 2fe6f096c93aa78624bf45d5e7239b7591bf3fd6 (diff) |
python310Packages.django-two-factor-auth: add optional-dependencies
Diffstat (limited to 'pkgs/development/python-modules/django-two-factor-auth')
-rw-r--r-- | pkgs/development/python-modules/django-two-factor-auth/default.nix | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/django-two-factor-auth/default.nix b/pkgs/development/python-modules/django-two-factor-auth/default.nix index a9006e07da137..7ca684149800d 100644 --- a/pkgs/development/python-modules/django-two-factor-auth/default.nix +++ b/pkgs/development/python-modules/django-two-factor-auth/default.nix @@ -5,6 +5,7 @@ , django-otp , django-phonenumber-field , fetchFromGitHub +, phonenumbers , pydantic , pythonOlder , pythonRelaxDepsHook @@ -41,18 +42,38 @@ buildPythonPackage rec { django django-formtools django-otp - # django-otp-yubikey #Addtional Pkgs not in nixpkgs yet django-phonenumber-field - pydantic qrcode - twilio - webauthn ]; - # require internet connection + passthru.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" ]; + pythonImportsCheck = [ + "two_factor" + ]; meta = with lib; { description = "Complete Two-Factor Authentication for Django"; |