2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mkdocs,
|
|
|
|
csscompressor,
|
|
|
|
htmlmin,
|
|
|
|
jsmin,
|
|
|
|
pytestCheckHook,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildPythonPackage rec {
|
2024-01-13 08:15:51 +00:00
|
|
|
pname = "mkdocs-minify-plugin";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.7.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "byrnereese";
|
2024-01-13 08:15:51 +00:00
|
|
|
repo = "mkdocs-minify-plugin";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-LDCAWKVbFsa6Y/tmY2Zne4nOtxe4KvNplZuWxg4e4L8=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
csscompressor
|
|
|
|
htmlmin
|
|
|
|
jsmin
|
|
|
|
mkdocs
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
mkdocs
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# Some tests fail with an assertion error failure
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [ "mkdocs" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Mkdocs plugin to minify the HTML of a page before it is written to disk";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/byrnereese/mkdocs-minify-plugin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tfc ];
|
|
|
|
};
|
|
|
|
}
|