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