Skip to content

Commit 19a2166

Browse files
authored
python313Packages.htmlmin: fix build on python 3.13 (#417983)
2 parents a664d33 + 2e3453d commit 19a2166

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

pkgs/development/python-modules/htmlmin/default.nix

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,36 @@
22
lib,
33
buildPythonPackage,
44
fetchPypi,
5-
pythonAtLeast,
5+
setuptools,
6+
standard-cgi,
67
}:
78

89
buildPythonPackage rec {
910
pname = "htmlmin";
1011
version = "0.1.12";
11-
format = "setuptools";
12+
pyproject = true;
1213

1314
src = fetchPypi {
1415
inherit pname version;
15-
sha256 = "50c1ef4630374a5d723900096a961cff426dff46b48f34d194a81bbe14eca178";
16+
hash = "sha256-UMHvRjA3Sl1yOQAJapYc/0Jt/0a0jzTRlKgbvhTsoXg=";
1617
};
1718

18-
# Tests run fine in a normal source checkout, but not when being built by nix.
19+
build-system = [
20+
setuptools
21+
];
22+
23+
dependencies = [
24+
standard-cgi
25+
];
26+
27+
# pypi tarball does not contain tests
1928
doCheck = false;
2029

21-
meta = with lib; {
30+
meta = {
2231
description = "Configurable HTML Minifier with safety features";
2332
mainProgram = "htmlmin";
24-
homepage = "https://pypi.python.org/pypi/htmlmin";
25-
license = licenses.bsd3;
26-
maintainers = [ ];
27-
broken = pythonAtLeast "3.13"; # requires removed cgi module
33+
homepage = "https://github.com/mankyd/htmlmin";
34+
license = lib.licenses.bsd3;
35+
maintainers = with lib.maintainers; [ nickcao ];
2836
};
2937
}

0 commit comments

Comments
 (0)