python3Packages.mkdocs-minify: init at 0.5.0

This commit is contained in:
Jacek Galowicz 2022-04-28 12:20:13 +02:00
parent 5ab47f589a
commit dbd127754d
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, callPackage
, buildPythonApplication
, fetchFromGitHub
, mkdocs
, csscompressor
, htmlmin
, jsmin
}:
buildPythonApplication rec {
pname = "mkdocs-minify";
version = "0.5.0";
src = fetchFromGitHub {
owner = "byrnereese";
repo = "${pname}-plugin";
rev = version;
sha256 = "sha256-7v4uX711KAKuXFeVdLuIdGQi2i+dL4WX7+Zd4H1L3lM=";
};
propagatedBuildInputs = [
csscompressor
htmlmin
jsmin
mkdocs
];
pythonImportsCheck = [ "mkdocs" ];
meta = with lib; {
description = "A mkdocs plugin to minify the HTML of a page before it is written to disk.";
homepage = "https://github.com/byrnereese/mkdocs-minify-plugin";
license = licenses.mit;
maintainers = with maintainers; [ tfc ];
};
}

View File

@ -5217,6 +5217,7 @@ in {
mkdocs = callPackage ../development/python-modules/mkdocs { };
mkdocs-material = callPackage ../development/python-modules/mkdocs-material { };
mkdocs-material-extensions = callPackage ../development/python-modules/mkdocs-material/mkdocs-material-extensions.nix { };
mkdocs-minify = callPackage ../development/python-modules/mkdocs-minify { };
mkl-service = callPackage ../development/python-modules/mkl-service { };