python311Packages.scrapy: unbreak tests with upstream patch

b1fe97dc6c
fixes test test_get_func_args
This commit is contained in:
annalee 2024-05-07 04:28:40 +00:00
parent c26eaa2650
commit c346396257
No known key found for this signature in database

View File

@ -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