blob: 91d044a366a1da52425d3d2b35781a2a5a1aa560 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ lib
, buildPythonPackage
, docopt
, fetchPypi
, pdfminer-six
, pythonOlder
, pythonRelaxDepsHook
, setuptools
, wand
}:
buildPythonPackage rec {
pname = "py-pdf-parser";
version = "0.11.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-GsiGBigvtAgrM0sRffZBG2tVoEaDai+eUxXhMXWNBr0=";
};
nativeBuildInputs = [
setuptools
pythonRelaxDepsHook
];
propagatedBuildInputs = [
docopt
pdfminer-six
wand
];
pythonRelaxDeps = [
"docopt"
"pdfminer.six"
"wand"
];
# needs pyvoronoi, which isn't packaged yet
doCheck = false;
pythonImportsCheck = [
"py_pdf_parser"
"py_pdf_parser.loaders"
];
meta = with lib; {
description = "A tool to help extracting information from structured PDFs";
homepage = "https://github.com/jstockwin/py-pdf-parser";
changelog = "https://github.com/jstockwin/py-pdf-parser/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}
|