Commit 2fe6f096 authored by Dennis Wuitz's avatar Dennis Wuitz
Browse files

python3.pkgs.django-two-factor-auth: init at 1.15.1

parent 59229553
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, django
, django-formtools
, django-otp
, django-phonenumber-field
, fetchFromGitHub
, pydantic
, pythonOlder
, pythonRelaxDepsHook
, qrcode
, setuptools-scm
, twilio
, webauthn
}:

buildPythonPackage rec {
  pname = "django-two-factor-auth";
  version = "1.15.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "jazzband";
    repo = "django-two-factor-auth";
    rev = "refs/tags/${version}";
    hash = "sha256-+E6kSD00ChPiRLT2i43dNlVkbvuR1vKkbSZfD1Bf3qc=";
  };

  nativeBuildInputs = [
    pythonRelaxDepsHook
    setuptools-scm
  ];

  pythonRelaxDeps = [
    "django-phonenumber-field"
  ];

  propagatedBuildInputs = [
    django
    django-formtools
    django-otp
    # django-otp-yubikey #Addtional Pkgs not in nixpkgs yet
    django-phonenumber-field
    pydantic
    qrcode
    twilio
    webauthn
  ];

  # require internet connection
  doCheck = false;

  pythonImportsCheck = [ "two_factor" ];

  meta = with lib; {
    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/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ derdennisop ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -2767,6 +2767,8 @@ self: super: with self; {

  django_treebeard = callPackage ../development/python-modules/django_treebeard { };

  django-two-factor-auth = callPackage ../development/python-modules/django-two-factor-auth { };

  django-versatileimagefield = callPackage ../development/python-modules/django-versatileimagefield { };

  django-vite = callPackage ../development/python-modules/django-vite { };