pythonPackages.djangorestframework-jwt: make an alias of drf-jwt
As per https://github.com/jpadilla/django-rest-framework-jwt/issues/484, the latter is a drop-in replacement of the former, while the former is unmaintained.
This commit is contained in:
parent
4aa6396a6f
commit
0c5385626f
|
@ -1,30 +0,0 @@
|
||||||
{ lib
|
|
||||||
, fetchPypi
|
|
||||||
, django
|
|
||||||
, pyjwt
|
|
||||||
, djangorestframework
|
|
||||||
, buildPythonPackage
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "djangorestframework-jwt";
|
|
||||||
version = "1.11.0";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "19rng6v1sw14mbjp5cplnrgxjnhlj8faalfw02iihi9s5w1k7zjy";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyjwt django djangorestframework ];
|
|
||||||
|
|
||||||
# ./runtests.py fails because the project must be tested against a django
|
|
||||||
# installation, there are missing database tables for User, that don't exist.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "JSON Web Token Authentication support for Django REST Framework";
|
|
||||||
homepage = "https://github.com/GetBlimp/django-rest-framework-jwt";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ maintainers.ivegotasthma ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1928,7 +1928,7 @@ in {
|
||||||
|
|
||||||
djangorestframework = callPackage ../development/python-modules/djangorestframework { };
|
djangorestframework = callPackage ../development/python-modules/djangorestframework { };
|
||||||
|
|
||||||
djangorestframework-jwt = callPackage ../development/python-modules/djangorestframework-jwt { };
|
djangorestframework-jwt = self.drf-jwt;
|
||||||
|
|
||||||
djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { };
|
djangorestframework-simplejwt = callPackage ../development/python-modules/djangorestframework-simplejwt { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue