2021-02-05 17:12:51 +00:00
|
|
|
{ lib, python3Packages, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication {
|
|
|
|
pname = "pdf-parser";
|
|
|
|
version = "0.7.4";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://didierstevens.com/files/software/pdf-parser_V0_7_4.zip";
|
|
|
|
sha256 = "1j39yww2yl4cav8xgd4zfl5jchbbkvffnrynkamkzvz9dd5np2mh";
|
|
|
|
};
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm555 pdf-parser.py $out/bin/pdf-parser.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/bin/pdf-parser.py \
|
|
|
|
--replace '/usr/bin/python' '${python3Packages.python}/bin/python'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Parse a PDF document";
|
|
|
|
longDescription = ''
|
|
|
|
This tool will parse a PDF document to identify the fundamental elements used in the analyzed file.
|
|
|
|
It will not render a PDF document.
|
|
|
|
'';
|
|
|
|
homepage = "https://blog.didierstevens.com/programs/pdf-tools/";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = [ maintainers.lightdiscord ];
|
2021-03-23 19:22:30 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|