python313Packages.htmlmin: fix build on python 3.13

Nick Cao 2e3453d5 b851d18c

Changed files
+17 -9
pkgs
development
python-modules
htmlmin
+17 -9
pkgs/development/python-modules/htmlmin/default.nix
···
lib,
buildPythonPackage,
fetchPypi,
-
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "htmlmin";
version = "0.1.12";
-
format = "setuptools";
src = fetchPypi {
inherit pname version;
-
sha256 = "50c1ef4630374a5d723900096a961cff426dff46b48f34d194a81bbe14eca178";
};
-
# Tests run fine in a normal source checkout, but not when being built by nix.
doCheck = false;
-
meta = with lib; {
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
};
}
···
lib,
buildPythonPackage,
fetchPypi,
+
setuptools,
+
standard-cgi,
}:
buildPythonPackage rec {
pname = "htmlmin";
version = "0.1.12";
+
pyproject = true;
src = fetchPypi {
inherit pname version;
+
hash = "sha256-UMHvRjA3Sl1yOQAJapYc/0Jt/0a0jzTRlKgbvhTsoXg=";
};
+
build-system = [
+
setuptools
+
];
+
+
dependencies = [
+
standard-cgi
+
];
+
+
# pypi tarball does not contain tests
doCheck = false;
+
meta = {
description = "Configurable HTML Minifier with safety features";
mainProgram = "htmlmin";
+
homepage = "https://github.com/mankyd/htmlmin";
+
license = lib.licenses.bsd3;
+
maintainers = with lib.maintainers; [ nickcao ];
};
}