2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
django,
|
|
|
|
django-allauth,
|
|
|
|
django-otp,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
qrcode,
|
|
|
|
hatchling,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-allauth-2fa";
|
|
|
|
version = "0.11.1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "valohai";
|
|
|
|
repo = "django-allauth-2fa";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-bm2RwhvX2nfhYs74MM0iZl9U2gHgm0lLlh2tuRRcGso=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
django-allauth
|
|
|
|
django-otp
|
|
|
|
qrcode
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "allauth_2fa" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
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/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ derdennisop ];
|
|
|
|
};
|
|
|
|
}
|