Skip to content

Commit

Permalink
tocpdf: init at 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dansbandit committed Jun 12, 2024
1 parent 211f103 commit 4098898
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/by-name/to/tocpdf/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
python3Packages,
fetchPypi,
}:

python3Packages.buildPythonApplication rec {
pname = "tocpdf";
version = "0.3.3";
pyproject = true;

src = fetchPypi {
pname = "tocPDF";
inherit version;
hash = "sha256-B+UcvyjWceVErf1uDyGGTGwKBCGHmSOF19Vbk15cPp8=";
};

build-system = with python3Packages; [
setuptools
];

dependencies = with python3Packages; [
click
pdfplumber
pypdf
tika
tqdm
];

# no test
doCheck = false;

pythonImportsCheck = [ "tocPDF" ];

meta = {
description = "Automatic CLI tool for generating outline of PDFs based on the table of contents";
homepage = "https://github.com/kszenes/tocPDF";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dansbandit ];
mainProgram = "tocPDF";
};
}

0 comments on commit 4098898

Please sign in to comment.