1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mkdocs,
6 csscompressor,
7 htmlmin,
8 jsmin,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "mkdocs-minify-plugin";
14 version = "0.7.1";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "byrnereese";
19 repo = "mkdocs-minify-plugin";
20 tag = version;
21 hash = "sha256-LDCAWKVbFsa6Y/tmY2Zne4nOtxe4KvNplZuWxg4e4L8=";
22 };
23
24 propagatedBuildInputs = [
25 csscompressor
26 htmlmin
27 jsmin
28 mkdocs
29 ];
30
31 nativeCheckInputs = [
32 mkdocs
33 pytestCheckHook
34 ];
35
36 # Some tests fail with an assertion error failure
37 doCheck = false;
38
39 pythonImportsCheck = [ "mkdocs" ];
40
41 meta = with lib; {
42 description = "Mkdocs plugin to minify the HTML of a page before it is written to disk";
43 homepage = "https://github.com/byrnereese/mkdocs-minify-plugin";
44 license = licenses.mit;
45 maintainers = with maintainers; [ tfc ];
46 };
47}