2022-04-28 10:20:13 +00:00
|
|
|
{ lib
|
|
|
|
, callPackage
|
2022-10-02 16:13:32 +00:00
|
|
|
, buildPythonPackage
|
2022-04-28 10:20:13 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mkdocs
|
|
|
|
, csscompressor
|
|
|
|
, htmlmin
|
|
|
|
, jsmin
|
2022-10-02 16:13:32 +00:00
|
|
|
, pytestCheckHook
|
2022-04-28 10:20:13 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-02 16:13:32 +00:00
|
|
|
buildPythonPackage rec {
|
2022-04-28 10:20:13 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2022-10-02 16:13:32 +00:00
|
|
|
checkInputs = [
|
|
|
|
mkdocs
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-04-28 10:20:13 +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 ];
|
|
|
|
};
|
|
|
|
}
|