1{ lib
2, callPackage
3, buildPythonPackage
4, fetchFromGitHub
5, mkdocs
6, csscompressor
7, htmlmin
8, jsmin
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "mkdocs-minify";
14 version = "0.6.3";
15
16 src = fetchFromGitHub {
17 owner = "byrnereese";
18 repo = "${pname}-plugin";
19 rev = "refs/tags/${version}";
20 hash = "sha256-ajXkEKLBC86Y8YzDCZXd6x6QtLLrCDJkb6kDrRE536o=";
21 };
22
23 propagatedBuildInputs = [
24 csscompressor
25 htmlmin
26 jsmin
27 mkdocs
28 ];
29
30 nativeCheckInputs = [
31 mkdocs
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "mkdocs" ];
36
37 meta = with lib; {
38 description = "A mkdocs plugin to minify the HTML of a page before it is written to disk.";
39 homepage = "https://github.com/byrnereese/mkdocs-minify-plugin";
40 license = licenses.mit;
41 maintainers = with maintainers; [ tfc ];
42 };
43}