evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / to / tocpdf / package.nix
blobb2136973fc8d40c3f211d06835f272c1ddf258ce
2   lib,
3   python3Packages,
4   fetchFromGitHub,
5 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "tocpdf";
9   version = "0.3.9";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "kszenes";
14     repo = "tocPDF";
15     rev = "v${version}";
16     hash = "sha256-RaNMhEgJ2pSL9BvK1d2Z8AsUPhARaRtEiCnt/2E2uNs=";
17   };
19   build-system = with python3Packages; [
20     setuptools
21   ];
23   dependencies = with python3Packages; [
24     click
25     pdfplumber
26     pypdf
27     tika
28     tqdm
29   ];
31   nativeCheckInputs = with python3Packages; [
32     pytestCheckHook
33   ];
35   disabledTests = [
36     # touches network
37     "test_read_toc"
38   ];
40   pythonImportsCheck = [ "tocPDF" ];
42   meta = {
43     description = "Automatic CLI tool for generating outline of PDFs based on the table of contents";
44     homepage = "https://github.com/kszenes/tocPDF";
45     changelog = "https://github.com/kszenes/tocPDF/releases/tag/v${version}";
46     license = lib.licenses.mit;
47     maintainers = with lib.maintainers; [ dansbandit ];
48     mainProgram = "tocPDF";
49   };