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