blob: f4d70949c67aae68894eb99f8ce9204362fca42a (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyjwt
, djangorestframework
}:
buildPythonPackage rec {
pname = "drf-jwt";
version = "1.19.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "Styria-Digital";
repo = "django-rest-framework-jwt";
rev = version;
hash = "sha256-bbkk78uYTG+JTzY3AyOmEVtVSgout/TETfr5N5fUto4=";
};
propagatedBuildInputs = [
pyjwt
djangorestframework
]
++ pyjwt.optional-dependencies.crypto;
# requires setting up a django instance
doCheck = false;
pythonImportsCheck = [
"rest_framework_jwt"
"rest_framework_jwt.blacklist"
# require setting DJANGO_SETTINGS_MODULE
# "rest_framework_jwt.authentication"
# "rest_framework_jwt.blacklist.views"
# "rest_framework_jwt.settings"
# "rest_framework_jwt.utils"
# "rest_framework_jwt.views"
];
meta = with lib; {
description = "JSON Web Token based authentication for Django REST framework";
homepage = "https://github.com/Styria-Digital/django-rest-framework-jwt";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|