From 0ac846f7a76395e4fc788b906e2938478a8953a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Mon, 14 Apr 2025 09:35:11 +0200 Subject: [PATCH] python3Packages.dj-rest-auth: fix build Add a patch to make the build compatible with `djangorestframework-simplejwt-5.5`. --- .../python-modules/dj-rest-auth/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 "==" ">="