python312Packages.django-allauth-2fa: drop

django-allauth-2fa was unused, incompatible with the currently packaged
django-allauth version and django-allauth now supports 2fa itself.

> and the release notes encourage to switch to allauth
https://github.com/valohai/django-allauth-2fa/issues/189#issuecomment-2594667805
This commit is contained in:
Marcel
2025-02-15 21:14:55 +01:00
parent 2ff53fe644
commit 36968c7692
3 changed files with 1 additions and 47 deletions
@@ -1,45 +0,0 @@
{
lib,
buildPythonPackage,
django,
django-allauth,
django-otp,
fetchFromGitHub,
pythonOlder,
qrcode,
hatchling,
}:
buildPythonPackage rec {
pname = "django-allauth-2fa";
version = "0.12.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "valohai";
repo = "django-allauth-2fa";
tag = "v${version}";
hash = "sha256-hVPIqy3vpRXTYTGRXEE5wg0oPyhLlm37fM9wn7xRYys=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
django
django-allauth
django-otp
qrcode
];
pythonImportsCheck = [ "allauth_2fa" ];
meta = with lib; {
description = "django-allauth-2fa adds two-factor authentication to django-allauth";
homepage = "https://github.com/valohai/django-allauth-2fa";
changelog = "https://github.com/valohai/django-allauth-2fa/releases/tag/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ derdennisop ];
};
}
+1
View File
@@ -158,6 +158,7 @@ mapAliases ({
distutils_extra = distutils-extra; # added 2023-10-12
digital-ocean = python-digitalocean; # addad 2024-04-12
djangorestframework-jwt = drf-jwt; # added 2021-07-20
django-allauth-2fa = throw "django-allauth-2fa was removed because it was unused and django-allauth now contains 2fa logic itself."; # added 2025-02-15
django-sampledatahelper = throw "django-sampledatahelper was removed because it is no longer compatible to latest Django version"; # added 2022-07-18
django_2 = throw "Django 2 has reached it's projected EOL in 2022/04 and has therefore been removed."; # added 2022-03-05
django_appconf = django-appconf; # added 2022-03-03
-2
View File
@@ -3418,8 +3418,6 @@ self: super: with self; {
django-allauth = callPackage ../development/python-modules/django-allauth { };
django-allauth-2fa = callPackage ../development/python-modules/django-allauth-2fa { };
django-anymail = callPackage ../development/python-modules/django-anymail { };
django-annoying = callPackage ../development/python-modules/django-annoying { };