blob: 5261fe3dbfe2f6b876e374aafa4f7458f4ceddb8 (
plain) (
blame)
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
|
{ lib, python3, fetchPypi }:
let
localPython = python3.override {
self = localPython;
packageOverrides = self: super: {
# Can be removed once this is merged
# https://gitlab.com/pdftools/pdfposter/-/merge_requests/7
pypdf2 = super.pypdf2.overridePythonAttrs (oldAttrs: rec {
version = "2.11.1";
format = "setuptools";
src = fetchPypi {
pname = "PyPDF2";
inherit version;
hash = "sha256-PHut1RLCFxHrF4nC6tv5YnkonA+URS7lSoZHO/vv1zI=";
};
});
};
};
in
with localPython.pkgs; buildPythonApplication rec {
pname = "pdfposter";
version = "0.8.1";
format = "setuptools";
propagatedBuildInputs = [ pypdf2 ];
src = fetchPypi {
pname = "pdftools.pdfposter";
inherit version;
hash = "sha256-yWFtHgVKAWs4dRlSk8t8cB2KBJeBOa0Frh3BLR9txS0=";
};
pythonImportsCheck = [
"pdftools.pdfposter"
"pdftools.pdfposter.cmd"
];
meta = with lib; {
description = "Split large pages of a PDF into smaller ones for poster printing";
homepage = "https://pdfposter.readthedocs.io";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ wamserma ];
};
}
|