Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchFromGitHub, social-auth-core, django, python }:
2
3buildPythonPackage rec {
4 pname = "social-auth-app-django";
5 version = "5.2.0";
6
7 src = fetchFromGitHub {
8 owner = "python-social-auth";
9 repo = "social-app-django";
10 rev = "refs/tags/${version}";
11 hash = "sha256-GLOZfiSXkUnTK8Mxg+5jbxkE6Mo0kW5vMZsPe9G/dpU=";
12 };
13
14 propagatedBuildInputs = [
15 social-auth-core
16 ];
17
18 pythonImportsCheck = [ "social_django" ];
19
20 nativeCheckInputs = [
21 django
22 ];
23
24 checkPhase = ''
25 ${python.interpreter} -m django test --settings="tests.settings"
26 '';
27
28 meta = with lib; {
29 homepage = "https://github.com/python-social-auth/social-app-django";
30 description = "Python Social Auth - Application - Django";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ n0emis ];
33 };
34}