2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
|
2018-06-29 20:37:45 +01:00
|
|
|
, django, python3-openid, mock, coverage }:
|
2018-05-24 15:03:03 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-allauth";
|
2019-09-28 09:03:30 +01:00
|
|
|
version = "0.40.0";
|
2018-05-24 15:03:03 +01:00
|
|
|
|
|
|
|
# no tests on PyPI
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pennersr";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-09-28 09:03:30 +01:00
|
|
|
sha256 = "10id4k01p1hg5agb8cmllg8mv4kc7ryl75br10idwxabqqp4vla1";
|
2018-05-24 15:03:03 +01:00
|
|
|
};
|
|
|
|
|
2018-06-29 20:37:45 +01:00
|
|
|
propagatedBuildInputs = [ requests requests_oauthlib django python3-openid ];
|
2018-05-24 15:03:03 +01:00
|
|
|
|
|
|
|
checkInputs = [ coverage mock ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
|
|
cd $NIX_BUILD_TOP/$sourceRoot
|
|
|
|
coverage run manage.py test allauth
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-24 15:03:03 +01:00
|
|
|
description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.intenct.nl/projects/django-allauth";
|
2018-05-24 15:03:03 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|