nixpkgs-suyu/pkgs/development/python-modules/mkdocs-minify/default.nix
Martin Weinelt 6b67186fe9
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/crownstone-cloud/default.nix
- pkgs/development/python-modules/exrex/default.nix
- pkgs/development/python-modules/mkdocs-minify/default.nix
- pkgs/development/python-modules/myjwt/default.nix
- pkgs/development/tools/analysis/checkov/default.nix
2023-03-14 08:14:26 +01:00

43 lines
836 B
Nix

{ lib
, callPackage
, buildPythonPackage
, fetchFromGitHub
, mkdocs
, csscompressor
, htmlmin
, jsmin
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mkdocs-minify";
version = "0.6.3";
src = fetchFromGitHub {
owner = "byrnereese";
repo = "${pname}-plugin";
rev = "refs/tags/${version}";
hash = "sha256-ajXkEKLBC86Y8YzDCZXd6x6QtLLrCDJkb6kDrRE536o=";
};
propagatedBuildInputs = [
csscompressor
htmlmin
jsmin
mkdocs
];
nativeCheckInputs = [
mkdocs
pytestCheckHook
];
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 ];
};
}