2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
45 lines
894 B
Nix
45 lines
894 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mkdocs
|
|
, csscompressor
|
|
, htmlmin
|
|
, jsmin
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mkdocs-minify";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "byrnereese";
|
|
repo = "${pname}-plugin";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-LDCAWKVbFsa6Y/tmY2Zne4nOtxe4KvNplZuWxg4e4L8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
csscompressor
|
|
htmlmin
|
|
jsmin
|
|
mkdocs
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mkdocs
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Some tests fail with an assertion error failure
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|