1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 django, 6 djangorestframework, 7 fetchPypi, 8 pyjwt, 9 python-jose, 10 pythonOlder, 11 setuptools-scm, 12}: 13 14buildPythonPackage rec { 15 pname = "djangorestframework-simplejwt"; 16 version = "5.5.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchPypi { 22 pname = "djangorestframework_simplejwt"; 23 inherit version; 24 hash = "sha256-5yxVcvUdeAMCEojiBXr8vQPxf+EdSECW9ApGCrx26H8="; 25 }; 26 27 nativeBuildInputs = [ setuptools-scm ]; 28 29 propagatedBuildInputs = [ 30 django 31 djangorestframework 32 pyjwt 33 ]; 34 35 optional-dependencies = { 36 python-jose = [ python-jose ]; 37 crypto = [ cryptography ]; 38 }; 39 40 # Test raises django.core.exceptions.ImproperlyConfigured 41 doCheck = false; 42 43 pythonImportsCheck = [ "rest_framework_simplejwt" ]; 44 45 meta = with lib; { 46 description = "JSON Web Token authentication plugin for Django REST Framework"; 47 homepage = "https://github.com/davesque/django-rest-framework-simplejwt"; 48 changelog = "https://github.com/jazzband/djangorestframework-simplejwt/blob/v${version}/CHANGELOG.md"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ arnoldfarkas ]; 51 }; 52}