Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf-parser: init at 0.7.4 #82278

Merged
merged 1 commit into from
Mar 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions pkgs/tools/misc/pdf-parser/default.nix
Original file line number Diff line number Diff line change
@@ -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'
Ma27 marked this conversation as resolved.
Show resolved Hide resolved
'';

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26531,6 +26531,8 @@ in

hashdeep = callPackage ../tools/security/hashdeep { };

pdf-parser = callPackage ../tools/misc/pdf-parser {};

fluxboxlauncher = callPackage ../applications/misc/fluxboxlauncher {};

btcdeb = callPackage ../applications/blockchains/btcdeb {};
Expand Down