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