2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
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 {
|
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; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|