From 56aa2eac75c5130fef2f088c2802c6124f969afc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 3 Apr 2025 09:10:45 +0200 Subject: [PATCH] Revert "python313Packages.beautifulsoup4: 4.12.3 -> 4.13.3" This reverts commit 25a67348ed59b98d14245f44b6d342ec12f2ca78. Still breaking django-compressor. --- .../python-modules/beautifulsoup4/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/beautifulsoup4/default.nix b/pkgs/development/python-modules/beautifulsoup4/default.nix index 146be0151d2a..a0fbb4ade834 100644 --- a/pkgs/development/python-modules/beautifulsoup4/default.nix +++ b/pkgs/development/python-modules/beautifulsoup4/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch, chardet, hatchling, html5lib, @@ -10,7 +11,6 @@ pythonOlder, soupsieve, sphinxHook, - typing-extensions, # for passthru.tests html-sanitizer, @@ -23,7 +23,7 @@ buildPythonPackage rec { pname = "beautifulsoup4"; - version = "4.13.3"; + version = "4.12.3"; pyproject = true; outputs = [ @@ -35,18 +35,25 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-G9MkBdrMkgtCuDugFkR0ftd0VqZXYOKF+8R2M87dr4s="; + hash = "sha256-dOPRko7cBw0hdIGFxG4/szSQ8i9So63e6a7g9Pd4EFE="; }; - build-system = [ + patches = [ + (fetchpatch { + name = "tests.patch"; + url = "https://git.launchpad.net/beautifulsoup/patch/?id=9786a62726de5a8caba10021c4d4a58c8a3e9e3f"; + hash = "sha256-FOMoJjT0RgqKjbTLN/qCuc0HjhKeenMcgwb9Fp8atAY="; + }) + ]; + + nativeBuildInputs = [ hatchling sphinxHook ]; - dependencies = [ + propagatedBuildInputs = [ chardet soupsieve - typing-extensions ]; optional-dependencies = {