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