Unverified Commit b8f128cf authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

python3Packages.minify-html: init at 0.15.0 (#388756)

parents 20eba031 282fbbe4
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  lib,
  rustPlatform,
}:

buildPythonPackage rec {
  pname = "minify-html";
  version = "0.15.0";

  pyproject = true;

  # Fetching from Pypi, because there is no Cargo.lock in the GitHub repo.
  src = fetchPypi {
    inherit version;
    pname = "minify_html";
    hash = "sha256-z0w2tvmvOwkBvSoKKds7CcDN8MONPd4o5oNbzg9gXTc=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    name = "${pname}-${version}";
    hash = "sha256-f93gKKQRkjxQJ49EK/0UI+BzFEa6iSfDX/0gNysSDmc=";
  };

  nativeBuildInputs = with rustPlatform; [
    cargoSetupHook
    maturinBuildHook
  ];

  pythonImportsCheck = [ "minify_html" ];

  meta = {
    description = "Extremely fast and smart HTML + JS + CSS minifier";
    homepage = "https://github.com/wilsonzlin/minify-html/tree/master/minify-html-python";
    changelog = "https://github.com/wilsonzlin/minify-html/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = lib.teams.apm.members;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -8413,6 +8413,8 @@ self: super: with self; {
  miniful = callPackage ../development/python-modules/miniful { };
  minify-html = callPackage ../development/python-modules/minify-html { };
  minikanren = callPackage ../development/python-modules/minikanren { };
  minikerberos = callPackage ../development/python-modules/minikerberos { };