diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix b/nixpkgs/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix new file mode 100644 index 000000000000..dbb09cc5795b --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, mkdocs +, csscompressor +, htmlmin +, jsmin +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "mkdocs-minify-plugin"; + version = "0.7.1"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "byrnereese"; + repo = "mkdocs-minify-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 ]; + }; +} |