nixpkgs/pkgs/development/python-modules/djangorestframework-simplejwt/default.nix

46 lines
934 B
Nix
Raw Normal View History

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