Skip to content

Commit

Permalink
python3.pkgs.w3lib: fix build with python 3.9 and 3.10
Browse files Browse the repository at this point in the history
The fix for python/cpython#103848 /
CVE-2024-11168 also got backported to python 3.9.21 and 3.10.16, which
is why the testsuite started failing.
  • Loading branch information
flokli committed Jan 21, 2025
1 parent 759cb9c commit e7b3410
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/python-modules/w3lib/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
buildPythonPackage,
fetchpatch,
fetchPypi,
pytestCheckHook,
pythonOlder,
Expand All @@ -19,6 +20,13 @@ buildPythonPackage rec {
hash = "sha256-dW/y2Uxk5ByNfAxZ/qEqXQvFXjOlMceYi0oWPeubB90=";
};

patches = [
(fetchpatch {
url = "https://github.com/scrapy/w3lib/commit/44dcf9160c3f207658d6ce808307c80c9ca835a2.patch";
hash = "sha256-fUQ2oWpAJeslgemt+EUxKLH3Ywpg441FCOBLFJCZ+Ac=";
})
];

build-system = [ setuptools ];

nativeCheckInputs = [ pytestCheckHook ];
Expand Down

0 comments on commit e7b3410

Please sign in to comment.