Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / drf-jwt / default.nix
blob6ae583c98e0685e934bb7fe1c7c462e113411392
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pyjwt
5 , djangorestframework
6 }:
8 buildPythonPackage rec {
9   pname = "drf-jwt";
10   version = "1.19.2";
12   src = fetchFromGitHub {
13     owner = "Styria-Digital";
14     repo = "django-rest-framework-jwt";
15     rev = version;
16     hash = "sha256-bbkk78uYTG+JTzY3AyOmEVtVSgout/TETfr5N5fUto4=";
17   };
19   propagatedBuildInputs = [
20     pyjwt
21     djangorestframework
22   ]
23   ++ pyjwt.optional-dependencies.crypto;
25   # requires setting up a django instance
26   doCheck = false;
28   pythonImportsCheck = [
29     "rest_framework_jwt"
30     "rest_framework_jwt.blacklist"
31     # require setting DJANGO_SETTINGS_MODULE
32     # "rest_framework_jwt.authentication"
33     # "rest_framework_jwt.blacklist.views"
34     # "rest_framework_jwt.settings"
35     # "rest_framework_jwt.utils"
36     # "rest_framework_jwt.views"
37   ];
39   meta = with lib; {
40     description = "JSON Web Token based authentication for Django REST framework";
41     homepage = "https://github.com/Styria-Digital/django-rest-framework-jwt";
42     license = licenses.mit;
43     maintainers = with maintainers; [ dotlambda ];
44   };