1{ stdenv, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib 2, django, python3-openid, mock, coverage }: 3 4buildPythonPackage rec { 5 pname = "django-allauth"; 6 version = "0.36.0"; 7 8 # no tests on PyPI 9 src = fetchFromGitHub { 10 owner = "pennersr"; 11 repo = pname; 12 rev = version; 13 sha256 = "1c863cmd521j6cwpyd50jxz5y62fdschrhm15jfqihicyr9imjan"; 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 stdenv.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}