2022-02-25 14:20:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, django
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3-openid
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, requests-oauthlib
|
|
|
|
}:
|
2018-05-24 15:03:03 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-allauth";
|
2022-06-23 19:10:24 +01:00
|
|
|
version = "0.51.0";
|
2022-02-25 14:20:28 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-05-24 15:03:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pennersr";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-06-23 19:10:24 +01:00
|
|
|
hash = "sha256-o8EoayMMwxoJTrUA3Jo1Dfu1XFgC+Mcpa8yMwXlKAKY=";
|
2018-05-24 15:03:03 +01:00
|
|
|
};
|
|
|
|
|
2022-05-19 00:38:33 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x manage.py
|
|
|
|
patchShebangs manage.py
|
|
|
|
'';
|
|
|
|
|
2022-02-25 14:20:28 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
python3-openid
|
2022-05-19 00:38:33 +01:00
|
|
|
requests
|
|
|
|
requests-oauthlib
|
2022-02-25 14:20:28 +00:00
|
|
|
];
|
2018-05-24 15:03:03 +01:00
|
|
|
|
2022-05-19 00:38:33 +01:00
|
|
|
checkPhase = ''
|
|
|
|
# test is out of date
|
|
|
|
rm allauth/socialaccount/providers/cern/tests.py
|
|
|
|
|
|
|
|
./manage.py test
|
|
|
|
'';
|
2022-02-25 14:20:28 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"allauth"
|
|
|
|
];
|
2018-05-24 15:03:03 +01:00
|
|
|
|
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;
|
2022-05-19 00:38:33 +01:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-05-24 15:03:03 +01:00
|
|
|
};
|
|
|
|
}
|