2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, callPackage
|
2022-10-30 15:09:59 +00:00
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mkdocs
|
|
|
|
, csscompressor
|
|
|
|
, htmlmin
|
|
|
|
, jsmin
|
2022-10-30 15:09:59 +00:00
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "mkdocs-minify";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.6.2";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "byrnereese";
|
|
|
|
repo = "${pname}-plugin";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-ABoLt5sFpt8Hm07tkqeAcs63ZvJ4vTbGw4QRYVYpMEA=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
csscompressor
|
|
|
|
htmlmin
|
|
|
|
jsmin
|
|
|
|
mkdocs
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
checkInputs = [
|
|
|
|
mkdocs
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|