-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmkdocs-with-pdf.nix
More file actions
45 lines (37 loc) · 839 Bytes
/
mkdocs-with-pdf.nix
File metadata and controls
45 lines (37 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ buildPythonPackage
, fetchPypi
, isPy3k
, lib
, beautifulsoup4
, libsass
, mkdocs
, qrcode
, weasyprint
}:
let
pname = "mkdocs-with-pdf";
version = "0.9.3";
in
buildPythonPackage {
inherit pname version;
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-vaM3XXBA0biHHaF8bXHqc2vcpsZpYI8o7WJ3EDHS4MY=";
};
propagatedBuildInputs = [
beautifulsoup4
libsass
mkdocs
qrcode
weasyprint
];
doCheck = false; # Needs deps qrcode and barcode. barcode isn't packaged.
pythonImportsCheck = [ "mkdocs_with_pdf" ];
meta = with lib; {
description = "This plugin will generate a single PDF file from your MkDocs repository.";
homepage = "https://github.com/orzih/mkdocs-with-pdf";
license = licenses.mit;
maintainers = with maintainers; [ tfc ];
};
}