From 227b2aa2276e694620bee9e2acf831c96dd9dbb4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 28 Oct 2026 02:42:03 +0000 Subject: [PATCH 1/2] python3Packages.html-sanitizer: 2.6 -> 2.7 --- pkgs/development/python-modules/html-sanitizer/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/html-sanitizer/default.nix b/pkgs/development/python-modules/html-sanitizer/default.nix index 47ead2323307..23f5e4dead21 100644 --- a/pkgs/development/python-modules/html-sanitizer/default.nix +++ b/pkgs/development/python-modules/html-sanitizer/default.nix @@ -17,14 +17,14 @@ buildPythonPackage rec { pname = "html-sanitizer"; - version = "2.6"; + version = "2.7"; pyproject = true; src = fetchFromGitHub { owner = "matthiask"; repo = "html-sanitizer"; tag = version; - hash = "sha256-egBGhv7vudH32jwh9rAXuXfMzPDxJ60S5WKbc4kzCTU="; + hash = "sha256-F+af1cyHAKc7FhTBHxc+LHhE46rE0rm23ONIqFIZolo="; }; build-system = [ hatchling ]; From 0d445d53b3eb4581cca3eb437e98505ba96a3d1d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 28 Oct 2026 08:25:26 +0100 Subject: [PATCH 2/2] python3Packages.html-sanitizer: migrate to finalAttrs - remove grouping from inputs --- .../python-modules/html-sanitizer/default.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/html-sanitizer/default.nix b/pkgs/development/python-modules/html-sanitizer/default.nix index 23f5e4dead21..8988b59ec4d0 100644 --- a/pkgs/development/python-modules/html-sanitizer/default.nix +++ b/pkgs/development/python-modules/html-sanitizer/default.nix @@ -1,21 +1,15 @@ { lib, + beautifulsoup4, buildPythonPackage, fetchFromGitHub, - - # build-system hatchling, - - # dependencies - lxml, lxml-html-clean, - beautifulsoup4, - - # tests + lxml, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "html-sanitizer"; version = "2.7"; pyproject = true; @@ -23,7 +17,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "matthiask"; repo = "html-sanitizer"; - tag = version; + tag = finalAttrs.version; hash = "sha256-F+af1cyHAKc7FhTBHxc+LHhE46rE0rm23ONIqFIZolo="; }; @@ -50,8 +44,8 @@ buildPythonPackage rec { meta = { description = "Allowlist-based and very opinionated HTML sanitizer"; homepage = "https://github.com/matthiask/html-sanitizer"; - changelog = "https://github.com/matthiask/html-sanitizer/blob/${version}/CHANGELOG.rst"; + changelog = "https://github.com/matthiask/html-sanitizer/blob/${finalAttrs.version}/CHANGELOG.rst"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ fab ]; }; -} +})