at 23.11-beta 34 lines 976 B view raw
1{ lib, python3Packages, fetchzip }: 2 3python3Packages.buildPythonApplication { 4 pname = "pdf-parser"; 5 version = "0.7.4"; 6 7 src = fetchzip { 8 url = "https://didierstevens.com/files/software/pdf-parser_V0_7_4.zip"; 9 sha256 = "1j39yww2yl4cav8xgd4zfl5jchbbkvffnrynkamkzvz9dd5np2mh"; 10 }; 11 12 format = "other"; 13 14 installPhase = '' 15 install -Dm555 pdf-parser.py $out/bin/pdf-parser.py 16 ''; 17 18 preFixup = '' 19 substituteInPlace $out/bin/pdf-parser.py \ 20 --replace '/usr/bin/python' '${python3Packages.python}/bin/python' 21 ''; 22 23 meta = with lib; { 24 description = "Parse a PDF document"; 25 longDescription = '' 26 This tool will parse a PDF document to identify the fundamental elements used in the analyzed file. 27 It will not render a PDF document. 28 ''; 29 homepage = "https://blog.didierstevens.com/programs/pdf-tools/"; 30 license = licenses.publicDomain; 31 maintainers = [ maintainers.lightdiscord ]; 32 platforms = platforms.all; 33 }; 34}