nixpkgs/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
921 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";
tag = 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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ tfc ];
};
}