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.5.0";
15
16 src = fetchFromGitHub {
17 owner = "byrnereese";
18 repo = "${pname}-plugin";
19 rev = version;
20 sha256 = "sha256-7v4uX711KAKuXFeVdLuIdGQi2i+dL4WX7+Zd4H1L3lM=";
21 };
22
23 propagatedBuildInputs = [
24 csscompressor
25 htmlmin
26 jsmin
27 mkdocs
28 ];
29
30 checkInputs = [
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}