From dbd127754dafda3ddab68019c7a451d9c6a18c5e Mon Sep 17 00:00:00 2001 From: Jacek Galowicz Date: Thu, 28 Apr 2022 12:20:13 +0200 Subject: [PATCH] python3Packages.mkdocs-minify: init at 0.5.0 --- .../python-modules/mkdocs-minify/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/mkdocs-minify/default.nix diff --git a/pkgs/development/python-modules/mkdocs-minify/default.nix b/pkgs/development/python-modules/mkdocs-minify/default.nix new file mode 100644 index 000000000000..0beeb5164160 --- /dev/null +++ b/pkgs/development/python-modules/mkdocs-minify/default.nix @@ -0,0 +1,37 @@ +{ lib +, callPackage +, buildPythonApplication +, fetchFromGitHub +, mkdocs +, csscompressor +, htmlmin +, jsmin +}: + +buildPythonApplication rec { + pname = "mkdocs-minify"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "byrnereese"; + repo = "${pname}-plugin"; + rev = version; + sha256 = "sha256-7v4uX711KAKuXFeVdLuIdGQi2i+dL4WX7+Zd4H1L3lM="; + }; + + propagatedBuildInputs = [ + csscompressor + htmlmin + jsmin + mkdocs + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 287d2928a303..9e34ec05b6c6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5217,6 +5217,7 @@ in { mkdocs = callPackage ../development/python-modules/mkdocs { }; mkdocs-material = callPackage ../development/python-modules/mkdocs-material { }; mkdocs-material-extensions = callPackage ../development/python-modules/mkdocs-material/mkdocs-material-extensions.nix { }; + mkdocs-minify = callPackage ../development/python-modules/mkdocs-minify { }; mkl-service = callPackage ../development/python-modules/mkl-service { };