python313Packages.htmlmin: fix build on python 3.13 (#417983)

This commit is contained in:
dotlambda
2025-06-18 20:34:17 -07:00
committed by GitHub
@@ -2,28 +2,36 @@
lib,
buildPythonPackage,
fetchPypi,
pythonAtLeast,
setuptools,
standard-cgi,
}:
buildPythonPackage rec {
pname = "htmlmin";
version = "0.1.12";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "50c1ef4630374a5d723900096a961cff426dff46b48f34d194a81bbe14eca178";
hash = "sha256-UMHvRjA3Sl1yOQAJapYc/0Jt/0a0jzTRlKgbvhTsoXg=";
};
# Tests run fine in a normal source checkout, but not when being built by nix.
build-system = [
setuptools
];
dependencies = [
standard-cgi
];
# pypi tarball does not contain tests
doCheck = false;
meta = with lib; {
meta = {
description = "Configurable HTML Minifier with safety features";
mainProgram = "htmlmin";
homepage = "https://pypi.python.org/pypi/htmlmin";
license = licenses.bsd3;
maintainers = [ ];
broken = pythonAtLeast "3.13"; # requires removed cgi module
homepage = "https://github.com/mankyd/htmlmin";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ nickcao ];
};
}