Merge pull request #175016 from SuperSandro2000/django-otp
python310Packages.django-otp: init at 1.1.3
This commit is contained in:
commit
79b963a795
2 changed files with 49 additions and 0 deletions
47
pkgs/development/python-modules/django-otp/default.nix
Normal file
47
pkgs/development/python-modules/django-otp/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, django
|
||||||
|
, freezegun
|
||||||
|
, pythonOlder
|
||||||
|
, qrcode
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "django-otp";
|
||||||
|
version = "1.1.3";
|
||||||
|
disabled = pythonOlder "3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "django-otp";
|
||||||
|
repo = "django-otp";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-Ac9p7q9yaUr3WTTGxCY16Yo/Z8i1RtnD2g0Aj2pqSXY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs manage.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
django
|
||||||
|
qrcode
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
freezegun
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
./manage.py test django_otp
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "django_otp" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/jazzband/django-model-utils";
|
||||||
|
description = "Pluggable framework for adding two-factor authentication to Django using one-time passwords";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2360,6 +2360,8 @@ in {
|
||||||
|
|
||||||
django-oauth-toolkit = callPackage ../development/python-modules/django-oauth-toolkit { };
|
django-oauth-toolkit = callPackage ../development/python-modules/django-oauth-toolkit { };
|
||||||
|
|
||||||
|
django-otp = callPackage ../development/python-modules/django-otp { };
|
||||||
|
|
||||||
django-paintstore = callPackage ../development/python-modules/django-paintstore { };
|
django-paintstore = callPackage ../development/python-modules/django-paintstore { };
|
||||||
|
|
||||||
django-pglocks = callPackage ../development/python-modules/django-pglocks { };
|
django-pglocks = callPackage ../development/python-modules/django-pglocks { };
|
||||||
|
|
Loading…
Reference in a new issue