chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / pd / pdfid / package.nix
blob62e14fa9d226952ecfb874913bc485a15c0935bf
1 { lib
2 , fetchzip
3 , python3
4 , python3Packages
5 , makeBinaryWrapper
6 }:
8 python3Packages.buildPythonApplication rec {
9   pname = "pdfid";
10   version = "0.2.8";
11   format = "other";
13   src = fetchzip {
14     url = "https://didierstevens.com/files/software/pdfid_v0_2_8.zip";
15     hash = "sha256-ZLyhBMF2KMX0c1oCvuSCjEjHTnm2gFhJtasaTD9Q1BI=";
16     stripRoot = false;
17   };
19   nativeBuildInputs = [
20     makeBinaryWrapper
21   ];
23   installPhase = ''
24     runHook preInstall
25     mkdir -p $out/{bin,share/pdfid}
26     cp -a * $out/share/pdfid/
27     makeBinaryWrapper ${lib.getExe python3} $out/bin/${meta.mainProgram} \
28       --add-flags "$out/share/pdfid/pdfid.py"
29     runHook postInstall
30   '';
32   meta = with lib; {
33     description = "Scan a file to look for certain PDF keywords";
34     homepage = "https://blog.didierstevens.com/programs/pdf-tools/";
35     license = with licenses; [ free ];
36     mainProgram = "pdfid";
37     maintainers = with maintainers; [ d3vil0p3r ];
38     platforms = platforms.unix;
39   };