nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, callPackage
3, buildPythonApplication
4, fetchFromGitHub
5, mkdocs
6, csscompressor
7, htmlmin
8, jsmin
9}:
10
11buildPythonApplication rec {
12 pname = "mkdocs-minify";
13 version = "0.5.0";
14
15 src = fetchFromGitHub {
16 owner = "byrnereese";
17 repo = "${pname}-plugin";
18 rev = version;
19 sha256 = "sha256-7v4uX711KAKuXFeVdLuIdGQi2i+dL4WX7+Zd4H1L3lM=";
20 };
21
22 propagatedBuildInputs = [
23 csscompressor
24 htmlmin
25 jsmin
26 mkdocs
27 ];
28
29 pythonImportsCheck = [ "mkdocs" ];
30
31 meta = with lib; {
32 description = "A mkdocs plugin to minify the HTML of a page before it is written to disk.";
33 homepage = "https://github.com/byrnereese/mkdocs-minify-plugin";
34 license = licenses.mit;
35 maintainers = with maintainers; [ tfc ];
36 };
37}