about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/djangorestframework-jwt/default.nix
blob: 643218242d798939cfa1d71c68258356a7ec0d3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, fetchPypi
, django
, pyjwt
, djangorestframework
, buildPythonPackage
}:

buildPythonPackage rec {
  pname = "djangorestframework-jwt";
  version = "1.11.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "19rng6v1sw14mbjp5cplnrgxjnhlj8faalfw02iihi9s5w1k7zjy";
  };

  propagatedBuildInputs = [ pyjwt django djangorestframework ];

  # ./runtests.py fails because the project must be tested against a django
  # installation, there are missing database tables for User, that don't exist.
  doCheck = false;

  meta = with lib; {
    description = "JSON Web Token Authentication support for Django REST Framework";
    homepage = "https://github.com/GetBlimp/django-rest-framework-jwt";
    license = licenses.mit;
    maintainers = [ maintainers.ivegotasthma ];
  };
}