Merge pull request #82278 from lightdiscord/package-request/pdf-parser
pdf-parser: init at 0.7.4
This commit is contained in:
commit
362a983a45
34
pkgs/tools/misc/pdf-parser/default.nix
Normal file
34
pkgs/tools/misc/pdf-parser/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv, python3Packages, fetchzip }:
|
||||
|
||||
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'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
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 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -26326,6 +26326,8 @@ in
|
||||
|
||||
hashdeep = callPackage ../tools/security/hashdeep { };
|
||||
|
||||
pdf-parser = callPackage ../tools/misc/pdf-parser {};
|
||||
|
||||
fluxboxlauncher = callPackage ../applications/misc/fluxboxlauncher {};
|
||||
|
||||
btcdeb = callPackage ../applications/blockchains/btcdeb {};
|
||||
|
Loading…
Reference in New Issue
Block a user