Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 social-auth-core, 6 django, 7 python, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "social-auth-app-django"; 13 version = "5.4.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "python-social-auth"; 20 repo = "social-app-django"; 21 tag = version; 22 hash = "sha256-W9boogixZ7X6qysfh2YEat+TOBy1VNreGr27y8hno+0="; 23 }; 24 25 propagatedBuildInputs = [ social-auth-core ]; 26 27 pythonImportsCheck = [ "social_django" ]; 28 29 nativeCheckInputs = [ django ]; 30 31 checkPhase = '' 32 ${python.interpreter} -m django test --settings="tests.settings" 33 ''; 34 35 meta = with lib; { 36 description = "Module for social authentication/registration mechanism"; 37 homepage = "https://github.com/python-social-auth/social-app-django"; 38 changelog = "https://github.com/python-social-auth/social-app-django/blob/${version}/CHANGELOG.md"; 39 license = licenses.bsd3; 40 maintainers = with maintainers; [ ]; 41 }; 42}