1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django-allauth 5, djangorestframework 6, djangorestframework-simplejwt 7, responses 8, unittest-xml-reporting 9}: 10 11buildPythonPackage rec { 12 pname = "dj-rest-auth"; 13 version = "2.2.5"; 14 15 src = fetchFromGitHub { 16 owner = "iMerica"; 17 repo = "dj-rest-auth"; 18 rev = version; 19 sha256 = "sha256-1oxkl7MJ2wIhcHlgxnCtj9Cp8o1puzNWs+vlMyi+3RM="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace "coveralls>=1.11.1" "" \ 25 --replace "==" ">=" 26 ''; 27 28 propagatedBuildInputs = [ 29 djangorestframework 30 ]; 31 32 checkInputs = [ 33 django-allauth 34 djangorestframework-simplejwt 35 responses 36 unittest-xml-reporting 37 ]; 38 39 pythonImportsCheck = [ "dj_rest_auth" ]; 40 41 meta = with lib; { 42 description = "Authentication for Django Rest Framework"; 43 homepage = "https://github.com/iMerica/dj-rest-auth"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ SuperSandro2000 ]; 46 }; 47}