about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeona Maroni <dev@leona.is>2024-03-05 22:40:55 +0100
committerLeona Maroni <dev@leona.is>2024-03-05 23:31:23 +0100
commit5a4abe8f77eb866300e591e268fb76f75b78e129 (patch)
tree1dbdc3c7594dd36916716e267477c7305f33cda1
parent0ce9aacffe65db64af135c2850ec6fb6e95633d4 (diff)
downloadnixlib-5a4abe8f77eb866300e591e268fb76f75b78e129.tar
nixlib-5a4abe8f77eb866300e591e268fb76f75b78e129.tar.gz
nixlib-5a4abe8f77eb866300e591e268fb76f75b78e129.tar.bz2
nixlib-5a4abe8f77eb866300e591e268fb76f75b78e129.tar.lz
nixlib-5a4abe8f77eb866300e591e268fb76f75b78e129.tar.xz
nixlib-5a4abe8f77eb866300e591e268fb76f75b78e129.tar.zst
nixlib-5a4abe8f77eb866300e591e268fb76f75b78e129.zip
python3Packages.dj-rest-auth: add patch to support django-allauth 0.61.0
-rw-r--r--pkgs/development/python-modules/dj-rest-auth/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dj-rest-auth/default.nix b/pkgs/development/python-modules/dj-rest-auth/default.nix
index 4c6751d8f43b..e415977d8637 100644
--- a/pkgs/development/python-modules/dj-rest-auth/default.nix
+++ b/pkgs/development/python-modules/dj-rest-auth/default.nix
@@ -5,6 +5,7 @@
 , djangorestframework
 , djangorestframework-simplejwt
 , fetchFromGitHub
+, fetchpatch
 , python
 , pythonOlder
 , responses
@@ -26,6 +27,15 @@ buildPythonPackage rec {
     hash = "sha256-TqeNpxXn+v89fEiJ4AVNhp8blCfYQKFQfYmZ6/QlRbQ=";
   };
 
+  patches = [
+    # https://github.com/iMerica/dj-rest-auth/pull/597
+    (fetchpatch {
+      name = "disable-email-confirmation-ratelimit-in-tests-to-support-new-allauth.patch";
+      url = "https://github.com/iMerica/dj-rest-auth/commit/c8f19e18a93f4959da875f9c5cdd32f7d9363bba.patch";
+      hash = "sha256-Y/YBjV+c5Gw1wMR5r/4VnyV/ewUVG0z4pjY/MB4ca9Y=";
+    })
+  ];
+
   postPatch = ''
     substituteInPlace setup.py \
       --replace "==" ">="