2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, django
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3-openid
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, requests-oauthlib
|
2022-10-21 18:38:19 +00:00
|
|
|
, pyjwt
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-allauth";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.54.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pennersr";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-0yJsHJhYeiCHQg/QzFD/metb97rcUJ+LYlsl7fGYmuM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x manage.py
|
|
|
|
patchShebangs manage.py
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
python3-openid
|
2022-10-21 18:38:19 +00:00
|
|
|
pyjwt
|
2022-06-16 17:23:12 +00:00
|
|
|
requests
|
|
|
|
requests-oauthlib
|
2022-10-21 18:38:19 +00:00
|
|
|
]
|
|
|
|
++ pyjwt.optional-dependencies.crypto;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
checkPhase = ''
|
|
|
|
# test is out of date
|
|
|
|
rm allauth/socialaccount/providers/cern/tests.py
|
|
|
|
|
|
|
|
./manage.py test
|
|
|
|
'';
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"allauth"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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;
|
2023-04-29 16:46:19 +00:00
|
|
|
maintainers = with maintainers; [ derdennisop ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|