python3.pkgs.beautifulsoup4: Fix build with libxml2 2.12

Changed files
+13
pkgs
development
python-modules
beautifulsoup4
+13
pkgs/development/python-modules/beautifulsoup4/default.nix
···
{ lib
, buildPythonPackage
, fetchPypi
, chardet
, hatchling
, html5lib
···
inherit pname version;
hash = "sha256-SSu8adyjXRLarHHE2xv/8Mh2wA70ov+sziJtRjjrcto=";
};
nativeBuildInputs = [
hatchling
···
{ lib
, buildPythonPackage
, fetchPypi
+
, fetchpatch
, chardet
, hatchling
, html5lib
···
inherit pname version;
hash = "sha256-SSu8adyjXRLarHHE2xv/8Mh2wA70ov+sziJtRjjrcto=";
};
+
+
patches = [
+
# Fix test with libxml 2.12.
+
# https://bugs.launchpad.net/beautifulsoup/+bug/2045481
+
(fetchpatch {
+
url = "https://bugs.launchpad.net/beautifulsoup/+bug/2045481/+attachment/5726132/+files/2045481.diff";
+
hash = "sha256-f/Wkh7El4r1iWM2/CSi5AKE1+NsEP3D5pxWgBcZ//Vs=";
+
excludes = [
+
"CHANGELOG"
+
];
+
})
+
];
nativeBuildInputs = [
hatchling