diff --git a/pkgs/development/python-modules/dj-rest-auth/default.nix b/pkgs/development/python-modules/dj-rest-auth/default.nix index de4caf5f86b1..7cabff4b15e1 100644 --- a/pkgs/development/python-modules/dj-rest-auth/default.nix +++ b/pkgs/development/python-modules/dj-rest-auth/default.nix @@ -6,6 +6,7 @@ djangorestframework, djangorestframework-simplejwt, fetchFromGitHub, + fetchpatch, python, responses, setuptools, @@ -24,6 +25,15 @@ buildPythonPackage rec { hash = "sha256-bus7Sf5H4PA5YFrkX7hbALOq04koDz3KTO42hHFJPhw="; }; + patches = [ + # See https://github.com/iMerica/dj-rest-auth/pull/683 + (fetchpatch { + name = "djangorestframework-simplejwt_5.5_compatibility.patch"; + url = "https://github.com/iMerica/dj-rest-auth/commit/cc5587e4e3f327697709f3f0d491650bff5464e7.diff"; + hash = "sha256-2LahibxuNECAfjqsbNs2ezaWt1VH0ZBNwSNWCZwIe8I="; + }) + ]; + postPatch = '' substituteInPlace setup.py \ --replace-fail "==" ">="