Files
nixpkgs/pkgs/development/python-modules/drf-jwt/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
1.1 KiB
Nix

{
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 = {
description = "JSON Web Token based authentication for Django REST framework";
homepage = "https://github.com/Styria-Digital/django-rest-framework-jwt";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}