This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
47 lines
1.1 KiB
Nix
47 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 = 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 ];
|
|
};
|
|
}
|