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