depot/third_party/nixpkgs/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

47 lines
938 B
Nix

{
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 = "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 ];
};
}