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