Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, django 4, djangorestframework 5, fetchPypi 6, pyjwt 7, python-jose 8, pythonOlder 9, setuptools-scm 10}: 11 12buildPythonPackage rec { 13 pname = "djangorestframework-simplejwt"; 14 version = "5.2.2"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 pname = "djangorestframework_simplejwt"; 21 inherit version; 22 hash = "sha256-0n1LysLGOU9njeqLTQ1RHG4Yp/Lriq7rin3mAa63fEI="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools-scm 27 ]; 28 29 propagatedBuildInputs = [ 30 django 31 djangorestframework 32 pyjwt 33 python-jose 34 ]; 35 36 # Test raises django.core.exceptions.ImproperlyConfigured 37 doCheck = false; 38 39 pythonImportsCheck = [ 40 "rest_framework_simplejwt" 41 ]; 42 43 meta = with lib; { 44 description = "JSON Web Token authentication plugin for Django REST Framework"; 45 homepage = "https://github.com/davesque/django-rest-framework-simplejwt"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ arnoldfarkas ]; 48 }; 49}