Unverified Commit 19a21665 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

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

parents a664d33e 2e3453d5
Loading
Loading
Loading
Loading
+17 −9
Original line number Diff line number Diff line
@@ -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 ];
  };
}