1{ lib
2 , buildPythonPackage
3, fetchFromGitHub
4, django
5, django-allauth
6, djangorestframework
7, drf-jwt
8, responses
9, six
10}:
11
12buildPythonPackage rec {
13 pname = "django-rest-auth";
14 version = "0.9.5";
15
16 src = fetchFromGitHub {
17 owner = "Tivix";
18 repo = "django-rest-auth";
19 rev = version;
20 sha256 = "sha256-rCChUHv8sTEFErDCZnPN5b5XVtMJ7JNVZwBYF3d99mY=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace "djangorestframework-jwt" "drf-jwt"
26 '';
27
28 propagatedBuildInputs = [
29 django
30 djangorestframework
31 six
32 ];
33
34 checkInputs = [
35 django-allauth
36 drf-jwt
37 responses
38 ];
39
40 # tests are icnompatible with current django version
41 doCheck = false;
42
43 pythonImportsCheck = [ "rest_auth" ];
44
45 meta = with lib; {
46 description = "Django app that makes registration and authentication easy";
47 homepage = "https://github.com/Tivix/django-rest-auth";
48 license = licenses.mit;
49 maintainers = with maintainers; [ SuperSandro2000 ];
50 };
51}