1{ lib, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
2, django, python3-openid, mock, coverage }:
3
4buildPythonPackage rec {
5 pname = "django-allauth";
6 version = "0.40.0";
7
8 # no tests on PyPI
9 src = fetchFromGitHub {
10 owner = "pennersr";
11 repo = pname;
12 rev = version;
13 sha256 = "10id4k01p1hg5agb8cmllg8mv4kc7ryl75br10idwxabqqp4vla1";
14 };
15
16 propagatedBuildInputs = [ requests requests_oauthlib django python3-openid ];
17
18 checkInputs = [ coverage mock ];
19
20 doCheck = false;
21 checkPhase = ''
22 cd $NIX_BUILD_TOP/$sourceRoot
23 coverage run manage.py test allauth
24 '';
25
26 meta = with lib; {
27 description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication";
28 homepage = "https://www.intenct.nl/projects/django-allauth";
29 license = licenses.mit;
30 };
31}