2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
python,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# build-time dependencies
|
|
|
|
gettext,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
django,
|
|
|
|
python3-openid,
|
|
|
|
requests,
|
|
|
|
requests-oauthlib,
|
|
|
|
pyjwt,
|
|
|
|
|
|
|
|
# optional-dependencies
|
|
|
|
python3-saml,
|
|
|
|
qrcode,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pillow,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-django,
|
|
|
|
|
|
|
|
# passthru tests
|
|
|
|
dj-rest-auth,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-allauth";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.61.1";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pennersr";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "django-allauth";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-C9SYlL1yMnSb+Zpi2opvDw1stxAHuI9/XKHyvkM36Cg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
gettext
|
2023-11-16 04:20:00 +00:00
|
|
|
setuptools
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
2022-10-21 18:38:19 +00:00
|
|
|
pyjwt
|
2024-01-25 14:12:00 +00:00
|
|
|
python3-openid
|
2022-06-16 17:23:12 +00:00
|
|
|
requests
|
|
|
|
requests-oauthlib
|
2024-01-25 14:12:00 +00:00
|
|
|
] ++ pyjwt.optional-dependencies.crypto;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
preBuild = "${python.interpreter} -m django compilemessages";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
saml = [ python3-saml ];
|
|
|
|
mfa = [ qrcode ];
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "allauth" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pillow
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-django
|
2024-01-25 14:12:00 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_login"
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit dj-rest-auth;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/pennersr/django-allauth/blob/${version}/ChangeLog.rst";
|
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";
|
2023-11-16 04:20:00 +00:00
|
|
|
downloadPage = "https://github.com/pennersr/django-allauth";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|