1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
{
lib,
buildPythonPackage,
cryptography,
defusedxml,
fetchFromGitHub,
httpretty,
lxml,
oauthlib,
pyjwt,
pytest-xdist,
pytestCheckHook,
python-jose,
python3-openid,
python3-saml,
requests,
requests-oauthlib,
responses,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "social-auth-core";
version = "4.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-social-auth";
repo = "social-core";
tag = version;
hash = "sha256-PQPnLTTCAUE1UmaDRmEXLozY0607e2/fLsvzcJzo4bQ=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
cryptography
defusedxml
oauthlib
pyjwt
python3-openid
requests
requests-oauthlib
];
optional-dependencies = {
openidconnect = [ python-jose ];
saml = [
lxml
python3-saml
];
azuread = [ cryptography ];
};
nativeCheckInputs = [
pytest-xdist
pytestCheckHook
httpretty
responses
typing-extensions
]
++ lib.concatAttrValues optional-dependencies;
disabledTestPaths = [
# missing google-auth-stubs
"social_core/tests/backends/test_google.py"
# network access
"social_core/tests/backends/test_steam.py::SteamOpenIdMissingSteamIdTest::test_login"
"social_core/tests/backends/test_steam.py::SteamOpenIdMissingSteamIdTest::test_partial_pipeline"
];
pythonImportsCheck = [ "social_core" ];
meta = {
description = "Module for social authentication/registration mechanisms";
homepage = "https://github.com/python-social-auth/social-core";
changelog = "https://github.com/python-social-auth/social-core/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}
|