python313Packages.beautifulsoup4: more libxml shenanigans

K900 d77667ce a85cdb9b

+13 -5
+13 -5
pkgs/development/python-modules/beautifulsoup4/default.nix
··· 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # build-system 7 hatchling, ··· 47 hash = "sha256-27PE4c6uau/r2vJCMkcmDNBiQwpBDjjGbyuqUKhDcZU="; 48 }; 49 50 build-system = [ hatchling ]; 51 52 nativeBuildInputs = [ sphinxHook ]; ··· 69 ] ++ lib.flatten (lib.attrValues optional-dependencies); 70 71 disabledTests = [ 72 - # these tests fail with libxml 2.14.3 73 - # https://bugs.launchpad.net/beautifulsoup/+bug/2112242 74 - "test_real_xhtml_document" 75 - "test_processing_instruction" 76 - "test_out_of_range_entity" 77 ]; 78 79 pythonImportsCheck = [ "bs4" ];
··· 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 + fetchpatch, 6 7 # build-system 8 hatchling, ··· 48 hash = "sha256-27PE4c6uau/r2vJCMkcmDNBiQwpBDjjGbyuqUKhDcZU="; 49 }; 50 51 + patches = [ 52 + # backport test fix for behavior changes in libxml 2.14.3 53 + (fetchpatch { 54 + url = "https://git.launchpad.net/beautifulsoup/patch/?id=53d328406ec8c37c0edbd00ace3782be63e2e7e5"; 55 + excludes = ["CHANGELOG"]; 56 + hash = "sha256-RtavbpnfT6x0A8L3tAvCXwKUpty1ASPGJKdks7evBr8="; 57 + }) 58 + ]; 59 + 60 build-system = [ hatchling ]; 61 62 nativeBuildInputs = [ sphinxHook ]; ··· 79 ] ++ lib.flatten (lib.attrValues optional-dependencies); 80 81 disabledTests = [ 82 + # fail with latest libxml, by not actually rejecting 83 + "test_rejected_markup" 84 + "test_rejected_input" 85 ]; 86 87 pythonImportsCheck = [ "bs4" ];