Unverified Commit 7226dd40 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

tocpdf: init at 0.3.3 (#319145)

parents f05282e2 4098898f
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{
  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";
  };
}