blob: d3eb5ead33d9ead26ed34ebf6fe0b9961392be29 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
djangorestframework,
django,
josepy,
requests,
cryptography,
}:
buildPythonPackage rec {
pname = "mozilla-django-oidc";
version = "4.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mozilla";
repo = "mozilla-django-oidc";
rev = version;
hash = "sha256-72F1aLLIId+YClTrpOz3bL8LSq6ZhZjjtv8V/GJGkqs=";
};
# Fix test with latest cryptography
# Upstream PR: https://github.com/mozilla/mozilla-django-oidc/pull/556
patches = [
./cryptography.patch
];
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
djangorestframework
];
checkPhase = ''
runHook preCheck
PYTHONPATH=.:$PYTHONPATH DJANGO_SETTINGS_MODULE=tests.settings django-admin test
runHook postCheck
'';
dependencies = [
django
josepy
requests
cryptography
];
meta = {
description = "Django OpenID Connect library";
homepage = "https://github.com/mozilla/mozilla-django-oidc";
changelog = "https://github.com/mozilla/mozilla-django-oidc/releases/tag/${src.rev}";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ felbinger ];
};
}
|