Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 django, 5 django-allauth, 6 django-otp, 7 fetchFromGitHub, 8 pythonOlder, 9 qrcode, 10 hatchling, 11}: 12 13buildPythonPackage rec { 14 pname = "django-allauth-2fa"; 15 version = "0.11.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "valohai"; 22 repo = "django-allauth-2fa"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-bm2RwhvX2nfhYs74MM0iZl9U2gHgm0lLlh2tuRRcGso="; 25 }; 26 27 nativeBuildInputs = [ hatchling ]; 28 29 propagatedBuildInputs = [ 30 django 31 django-allauth 32 django-otp 33 qrcode 34 ]; 35 36 pythonImportsCheck = [ "allauth_2fa" ]; 37 38 meta = with lib; { 39 description = "django-allauth-2fa adds two-factor authentication to django-allauth"; 40 homepage = "https://github.com/valohai/django-allauth-2fa"; 41 changelog = "https://github.com/valohai/django-allauth-2fa/releases/tag/v${version}"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ derdennisop ]; 44 }; 45}