1{ lib
2, buildPythonPackage
3, django
4, fetchFromGitHub
5, python3-openid
6, pythonOlder
7, requests
8, requests-oauthlib
9, pyjwt
10}:
11
12buildPythonPackage rec {
13 pname = "django-allauth";
14 version = "0.51.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "pennersr";
21 repo = pname;
22 rev = version;
23 hash = "sha256-o8EoayMMwxoJTrUA3Jo1Dfu1XFgC+Mcpa8yMwXlKAKY=";
24 };
25
26 postPatch = ''
27 chmod +x manage.py
28 patchShebangs manage.py
29 '';
30
31 propagatedBuildInputs = [
32 django
33 python3-openid
34 pyjwt
35 requests
36 requests-oauthlib
37 ]
38 ++ pyjwt.optional-dependencies.crypto;
39
40 checkPhase = ''
41 # test is out of date
42 rm allauth/socialaccount/providers/cern/tests.py
43
44 ./manage.py test
45 '';
46
47 pythonImportsCheck = [
48 "allauth"
49 ];
50
51 meta = with lib; {
52 description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication";
53 homepage = "https://www.intenct.nl/projects/django-allauth";
54 license = licenses.mit;
55 maintainers = with maintainers; [ SuperSandro2000 ];
56 };
57}