2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
|
2020-04-24 23:36:52 +00:00
|
|
|
, django, python3-openid, mock, coverage }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-allauth";
|
|
|
|
version = "0.40.0";
|
|
|
|
|
|
|
|
# no tests on PyPI
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pennersr";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "10id4k01p1hg5agb8cmllg8mv4kc7ryl75br10idwxabqqp4vla1";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests requests_oauthlib django python3-openid ];
|
|
|
|
|
|
|
|
checkInputs = [ coverage mock ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
|
|
cd $NIX_BUILD_TOP/$sourceRoot
|
|
|
|
coverage run manage.py test allauth
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication";
|
|
|
|
homepage = "https://www.intenct.nl/projects/django-allauth";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|