1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 django,
7 social-auth-core,
8 pytest-django,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "social-auth-app-django";
14 version = "5.5.1";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "python-social-auth";
19 repo = "social-app-django";
20 tag = version;
21 hash = "sha256-XS7Uj0h2kb+NfO/9S5DAwZ+6LSjqeNslLwNbbVZmkTw=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 django
28 social-auth-core
29 ];
30
31 pythonImportsCheck = [ "social_django" ];
32
33 nativeCheckInputs = [
34 pytest-django
35 pytestCheckHook
36 ];
37
38 preCheck = ''
39 export DJANGO_SETTINGS_MODULE=tests.settings
40 '';
41
42 meta = with lib; {
43 broken = lib.versionOlder django.version "5.1";
44 description = "Module for social authentication/registration mechanism";
45 homepage = "https://github.com/python-social-auth/social-app-django";
46 changelog = "https://github.com/python-social-auth/social-app-django/blob/${src.tag}/CHANGELOG.md";
47 license = licenses.bsd3;
48 maintainers = with maintainers; [ ];
49 };
50}