Skip to content

Commit af9e505

Browse files
authored
python3.pkgs.w3lib: fix build with python 3.9 and 3.10 (NixOS#375511)
2 parents 7081410 + e7b3410 commit af9e505

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/development/python-modules/w3lib/default.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
lib,
33
buildPythonPackage,
4+
fetchpatch,
45
fetchPypi,
56
pytestCheckHook,
67
pythonOlder,
@@ -19,6 +20,13 @@ buildPythonPackage rec {
1920
hash = "sha256-dW/y2Uxk5ByNfAxZ/qEqXQvFXjOlMceYi0oWPeubB90=";
2021
};
2122

23+
patches = [
24+
(fetchpatch {
25+
url = "https://github.com/scrapy/w3lib/commit/44dcf9160c3f207658d6ce808307c80c9ca835a2.patch";
26+
hash = "sha256-fUQ2oWpAJeslgemt+EUxKLH3Ywpg441FCOBLFJCZ+Ac=";
27+
})
28+
];
29+
2230
build-system = [ setuptools ];
2331

2432
nativeCheckInputs = [ pytestCheckHook ];

0 commit comments

Comments
 (0)