about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorannalee <168274788+annaleeleaves@users.noreply.github.com>2024-05-07 04:28:40 +0000
committerannalee <168274788+annaleeleaves@users.noreply.github.com>2024-05-07 04:30:24 +0000
commitc346396257496014da9fb5a931113609b2c2b356 (patch)
tree1f0e9658c36b0b0bec1e3ee85610a99aa22a0a02 /pkgs
parentc26eaa26503b86ff48ab29c8cd4e4546255893d4 (diff)
python311Packages.scrapy: unbreak tests with upstream patch
https://github.com/scrapy/scrapy/commit/b1fe97dc6c8509d58b29c61cf7801eeee1b409a9
fixes test test_get_func_args
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/scrapy/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/scrapy/default.nix b/pkgs/development/python-modules/scrapy/default.nix
index 68bb9460c14fd..058f1f8f56075 100644
--- a/pkgs/development/python-modules/scrapy/default.nix
+++ b/pkgs/development/python-modules/scrapy/default.nix
@@ -5,6 +5,7 @@
 , cryptography
 , cssselect
 , fetchPypi
+, fetchpatch
 , glibcLocales
 , installShellFiles
 , itemadapter
@@ -43,6 +44,16 @@ buildPythonPackage rec {
     hash = "sha256-czoDnHQj5StpvygQtTMgk9TkKoSEYDWcB7Auz/j3Pr4=";
   };
 
+  patches = [
+    # https://github.com/scrapy/scrapy/pull/6316
+    # fix test_get_func_args. remove on next update
+    (fetchpatch {
+      name = "test_get_func_args.patch";
+      url = "https://github.com/scrapy/scrapy/commit/b1fe97dc6c8509d58b29c61cf7801eeee1b409a9.patch";
+      hash = "sha256-POlmsuW4SD9baKwZieKfmlp2vtdlb7aKQ62VOmNXsr0=";
+    })
+  ];
+
   nativeBuildInputs = [
     installShellFiles
     setuptools