mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
tocpdf: init at 0.3.3
This commit is contained in:
parent
211f1033b7
commit
4098898ff6
42
pkgs/by-name/to/tocpdf/package.nix
Normal file
42
pkgs/by-name/to/tocpdf/package.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user