python311Packages.scrapy: fix build

This commit is contained in:
Mario Rodas 2023-10-30 04:20:00 +00:00
parent e0c778859c
commit 58da932d40

View file

@ -14,6 +14,7 @@
, lxml
, packaging
, parsel
, pexpect
, protego
, pydispatcher
, pyopenssl
@ -42,6 +43,18 @@ buildPythonPackage rec {
hash = "sha256-PL3tzgw/DgSC1hvi10WGg758188UsO5q37rduA9bNqU=";
};
patches = [
# Fix compatiblity with Twisted>=23.8. Remove with the next release.
(fetchpatch {
url = "https://github.com/scrapy/scrapy/commit/aa95ada42cdf570f840f55c463375f8a81b303f8.patch";
hash = "sha256-LuhA5BqtjSUgkotplvUCtvGNYOTrl0MJRCXiSBMDFzY=";
excludes = [
"tests/CrawlerProcess/sleeping.py"
"tests/test_crawler.py"
];
})
];
nativeBuildInputs = [
installShellFiles
];
@ -69,6 +82,7 @@ buildPythonPackage rec {
botocore
glibcLocales
jmespath
pexpect
pytestCheckHook
sybil
testfixtures