6 , djangorestframework-simplejwt
13 , unittest-xml-reporting
16 buildPythonPackage rec {
17 pname = "dj-rest-auth";
21 disabled = pythonOlder "3.6";
23 src = fetchFromGitHub {
25 repo = "dj-rest-auth";
26 rev = "refs/tags/${version}";
27 hash = "sha256-TqeNpxXn+v89fEiJ4AVNhp8blCfYQKFQfYmZ6/QlRbQ=";
31 # https://github.com/iMerica/dj-rest-auth/pull/597
33 name = "disable-email-confirmation-ratelimit-in-tests-to-support-new-allauth.patch";
34 url = "https://github.com/iMerica/dj-rest-auth/commit/c8f19e18a93f4959da875f9c5cdd32f7d9363bba.patch";
35 hash = "sha256-Y/YBjV+c5Gw1wMR5r/4VnyV/ewUVG0z4pjY/MB4ca9Y=";
40 substituteInPlace setup.py \
52 propagatedBuildInputs = [
56 passthru.optional-dependencies.with_social = [
61 djangorestframework-simplejwt
63 unittest-xml-reporting
64 ] ++ passthru.optional-dependencies.with_social;
67 # Test connects to graph.facebook.com
68 substituteInPlace dj_rest_auth/tests/test_serializers.py \
69 --replace "def test_http_error" "def dont_test_http_error"
74 ${python.interpreter} runtests.py
78 pythonImportsCheck = [
83 description = "Authentication for Django Rest Framework";
84 homepage = "https://github.com/iMerica/dj-rest-auth";
85 changelog = "https://github.com/iMerica/dj-rest-auth/releases/tag/${version}";
86 license = licenses.mit;
87 maintainers = with maintainers; [ ];