mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
91d0e1f878
and enable test suite.
44 lines
817 B
Nix
44 lines
817 B
Nix
{ lib
|
|
, callPackage
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mkdocs
|
|
, csscompressor
|
|
, htmlmin
|
|
, jsmin
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage 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
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|