python312Packages.kneaddata: init at 0.7.7-alpha (#340230)
[NixPkgs.git] / pkgs / development / python-modules / drf-jwt / default.nix
blob5e49603858032eb6e750a20e608d9fac2b98dc12
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pyjwt,
6   djangorestframework,
7 }:
9 buildPythonPackage rec {
10   pname = "drf-jwt";
11   version = "1.19.2";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "Styria-Digital";
16     repo = "django-rest-framework-jwt";
17     rev = version;
18     hash = "sha256-bbkk78uYTG+JTzY3AyOmEVtVSgout/TETfr5N5fUto4=";
19   };
21   propagatedBuildInputs = [
22     pyjwt
23     djangorestframework
24   ] ++ pyjwt.optional-dependencies.crypto;
26   # requires setting up a django instance
27   doCheck = false;
29   pythonImportsCheck = [
30     "rest_framework_jwt"
31     "rest_framework_jwt.blacklist"
32     # require setting DJANGO_SETTINGS_MODULE
33     # "rest_framework_jwt.authentication"
34     # "rest_framework_jwt.blacklist.views"
35     # "rest_framework_jwt.settings"
36     # "rest_framework_jwt.utils"
37     # "rest_framework_jwt.views"
38   ];
40   meta = with lib; {
41     description = "JSON Web Token based authentication for Django REST framework";
42     homepage = "https://github.com/Styria-Digital/django-rest-framework-jwt";
43     license = licenses.mit;
44     maintainers = with maintainers; [ dotlambda ];
45   };