2021-10-08 23:36:20 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, django
|
|
|
|
, djangorestframework
|
|
|
|
, fetchPypi
|
|
|
|
, pyjwt
|
|
|
|
, python-jose
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
2020-01-21 17:16:02 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-10-08 23:36:20 +02:00
|
|
|
pname = "djangorestframework-simplejwt";
|
2021-08-26 21:32:33 +02:00
|
|
|
version = "4.8.0";
|
2020-08-25 04:07:09 +02:00
|
|
|
|
2020-01-21 17:16:02 +01:00
|
|
|
src = fetchPypi {
|
2021-10-08 23:36:20 +02:00
|
|
|
pname = "djangorestframework_simplejwt";
|
|
|
|
inherit version;
|
2021-08-26 21:32:33 +02:00
|
|
|
sha256 = "153c973c5c154baf566be431de8527c2bd62557fde7373ebcb0f02b73b28e07a";
|
2020-01-21 17:16:02 +01:00
|
|
|
};
|
2020-08-25 04:07:09 +02:00
|
|
|
|
2021-10-08 23:36:20 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
djangorestframework
|
|
|
|
pyjwt
|
|
|
|
python-jose
|
|
|
|
];
|
2020-08-25 04:07:09 +02:00
|
|
|
|
2020-01-21 17:16:02 +01:00
|
|
|
# Test raises django.core.exceptions.ImproperlyConfigured
|
|
|
|
doCheck = false;
|
2020-08-25 04:07:09 +02:00
|
|
|
|
2021-10-08 23:36:20 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"rest_framework_simplejwt"
|
|
|
|
];
|
|
|
|
|
2020-01-21 17:16:02 +01:00
|
|
|
meta = with lib; {
|
2021-10-08 23:36:20 +02:00
|
|
|
description = "JSON Web Token authentication plugin for Django REST Framework";
|
2020-01-21 17:16:02 +01:00
|
|
|
homepage = "https://github.com/davesque/django-rest-framework-simplejwt";
|
|
|
|
license = licenses.mit;
|
2021-10-08 23:36:20 +02:00
|
|
|
maintainers = with maintainers; [ arnoldfarkas ];
|
2020-01-21 17:16:02 +01:00
|
|
|
};
|
|
|
|
}
|