2018-05-24 14:03:03 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, requests, requests_oauthlib
|
2018-06-29 19:37:45 +00:00
|
|
|
, django, python3-openid, mock, coverage }:
|
2018-05-24 14:03:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-allauth";
|
2019-05-02 04:07:21 +00:00
|
|
|
version = "0.39.1";
|
2018-05-24 14:03:03 +00:00
|
|
|
|
|
|
|
# no tests on PyPI
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pennersr";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-02 04:07:21 +00:00
|
|
|
sha256 = "1kplkanhj26z3i6p0l1r5lczha4pavcx96vj3kpcp1rvyk1v0f7r";
|
2018-05-24 14:03:03 +00:00
|
|
|
};
|
|
|
|
|
2018-06-29 19:37:45 +00:00
|
|
|
propagatedBuildInputs = [ requests requests_oauthlib django python3-openid ];
|
2018-05-24 14:03:03 +00:00
|
|
|
|
|
|
|
checkInputs = [ coverage mock ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
|
|
cd $NIX_BUILD_TOP/$sourceRoot
|
|
|
|
coverage run manage.py test allauth
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|