1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonAtLeast, 6}: 7 8buildPythonPackage rec { 9 pname = "htmlmin"; 10 version = "0.1.12"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "50c1ef4630374a5d723900096a961cff426dff46b48f34d194a81bbe14eca178"; 16 }; 17 18 # Tests run fine in a normal source checkout, but not when being built by nix. 19 doCheck = false; 20 21 meta = with lib; { 22 description = "Configurable HTML Minifier with safety features"; 23 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 28 }; 29}