python3Packages.django-mfa3: init at 0.13.0 (#350697)
This commit is contained in:
commit
bcdebea0a0
49
pkgs/development/python-modules/django-mfa3/default.nix
Normal file
49
pkgs/development/python-modules/django-mfa3/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
django,
|
||||
setuptools,
|
||||
pyotp,
|
||||
fido2,
|
||||
qrcode,
|
||||
python,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-mfa3";
|
||||
version = "0.13.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xi";
|
||||
repo = "django-mfa3";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-O8po7VevqyHlP2isnNnLbpgfs1p4sFezxIZKMTgnwuY=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -3446,6 +3446,8 @@ self: super: with self; {
|
||||
|
||||
django-markdownx = callPackage ../development/python-modules/django-markdownx { };
|
||||
|
||||
django-mfa3 = callPackage ../development/python-modules/django-mfa3 { };
|
||||
|
||||
django-model-utils = callPackage ../development/python-modules/django-model-utils { };
|
||||
|
||||
django-modelcluster = callPackage ../development/python-modules/django-modelcluster { };
|
||||
|
Loading…
Reference in New Issue
Block a user