Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
966 B
Nix
50 lines
966 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
setuptools,
|
|
pyotp,
|
|
fido2,
|
|
qrcode,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-mfa3";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xi";
|
|
repo = "django-mfa3";
|
|
tag = version;
|
|
hash = "sha256-bgIzrSM8KP6uQHvn393NWYw9DODdHLMqKn6pgw3EG/w=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
django
|
|
pyotp
|
|
fido2
|
|
qrcode
|
|
];
|
|
|
|
# qrcode 8.0 not supported yet
|
|
# See https://github.com/xi/django-mfa3/pull/14
|
|
pythonRelaxDeps = [ "qrcode" ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m django test --settings tests.settings
|
|
'';
|
|
|
|
meta = {
|
|
description = "Multi factor authentication for Django";
|
|
homepage = "https://github.com/xi/django-mfa3";
|
|
changelog = "https://github.com/xi/django-mfa3/blob/${src.rev}/CHANGES.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.onny ];
|
|
};
|
|
}
|