-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121825 from dotlambda/drf-jwt-init
pythonPackages.drf-jwt: init at 1.19.0
- Loading branch information
Showing
12 changed files
with
56 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
pkgs/development/python-modules/djangorestframework-jwt/default.nix
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, pyjwt | ||
, djangorestframework | ||
, pytestCheckHook | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "drf-jwt"; | ||
version = "1.19.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Styria-Digital"; | ||
repo = "django-rest-framework-jwt"; | ||
rev = version; | ||
sha256 = "012rmm25w5gvkzi4lyyhn47y1n6g68q9gasga2mkv9i6mn8n4kp7"; | ||
}; | ||
|
||
propagatedBuildInputs = [ | ||
pyjwt | ||
djangorestframework | ||
]; | ||
|
||
# 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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters