Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / pdfposter / default.nix
blob5261fe3dbfe2f6b876e374aafa4f7458f4ceddb8
1 { lib, python3, fetchPypi }:
2 let
3   localPython = python3.override {
4     self = localPython;
5     packageOverrides = self: super: {
6       # Can be removed once this is merged
7       # https://gitlab.com/pdftools/pdfposter/-/merge_requests/7
8       pypdf2 = super.pypdf2.overridePythonAttrs (oldAttrs: rec {
9         version = "2.11.1";
10         format = "setuptools";
11         src = fetchPypi {
12           pname = "PyPDF2";
13           inherit version;
14           hash = "sha256-PHut1RLCFxHrF4nC6tv5YnkonA+URS7lSoZHO/vv1zI=";
15         };
16       });
17     };
18   };
20 with localPython.pkgs; buildPythonApplication rec {
21   pname = "pdfposter";
22   version = "0.8.1";
23   format = "setuptools";
25   propagatedBuildInputs = [ pypdf2 ];
27   src = fetchPypi {
28     pname = "pdftools.pdfposter";
29     inherit version;
30     hash = "sha256-yWFtHgVKAWs4dRlSk8t8cB2KBJeBOa0Frh3BLR9txS0=";
31   };
33   pythonImportsCheck = [
34     "pdftools.pdfposter"
35     "pdftools.pdfposter.cmd"
36   ];
38   meta = with lib; {
39     description = "Split large pages of a PDF into smaller ones for poster printing";
40     homepage = "https://pdfposter.readthedocs.io";
41     license = licenses.gpl3Plus;
42     maintainers = with maintainers; [ wamserma ];
43   };