tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python313Packages.beautifulsoup4: more libxml shenanigans
K900
8 months ago
d77667ce
a85cdb9b
+13
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
beautifulsoup4
default.nix
+13
-5
pkgs/development/python-modules/beautifulsoup4/default.nix
···
2
2
lib,
3
3
buildPythonPackage,
4
4
fetchPypi,
5
5
+
fetchpatch,
5
6
6
7
# build-system
7
8
hatchling,
···
47
48
hash = "sha256-27PE4c6uau/r2vJCMkcmDNBiQwpBDjjGbyuqUKhDcZU=";
48
49
};
49
50
51
51
+
patches = [
52
52
+
# backport test fix for behavior changes in libxml 2.14.3
53
53
+
(fetchpatch {
54
54
+
url = "https://git.launchpad.net/beautifulsoup/patch/?id=53d328406ec8c37c0edbd00ace3782be63e2e7e5";
55
55
+
excludes = ["CHANGELOG"];
56
56
+
hash = "sha256-RtavbpnfT6x0A8L3tAvCXwKUpty1ASPGJKdks7evBr8=";
57
57
+
})
58
58
+
];
59
59
+
50
60
build-system = [ hatchling ];
51
61
52
62
nativeBuildInputs = [ sphinxHook ];
···
69
79
] ++ lib.flatten (lib.attrValues optional-dependencies);
70
80
71
81
disabledTests = [
72
72
-
# these tests fail with libxml 2.14.3
73
73
-
# https://bugs.launchpad.net/beautifulsoup/+bug/2112242
74
74
-
"test_real_xhtml_document"
75
75
-
"test_processing_instruction"
76
76
-
"test_out_of_range_entity"
82
82
+
# fail with latest libxml, by not actually rejecting
83
83
+
"test_rejected_markup"
84
84
+
"test_rejected_input"
77
85
];
78
86
79
87
pythonImportsCheck = [ "bs4" ];