Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / py-pdf-parser / default.nix
blob93ffeacb08a77fe57cb02a29e695059882ecdf68
1 { lib
2 , buildPythonPackage
3 , docopt
4 , fetchPypi
5 , pdfminer-six
6 , pythonOlder
7 , pythonRelaxDepsHook
8 , setuptools
9 , wand
12 buildPythonPackage rec {
13   pname = "py-pdf-parser";
14   version = "0.12.0";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-nMEmzQVz1LR4omHyxhvrjBXDQQE23S62T0wxZeMnXhg=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     pythonRelaxDepsHook
27   ];
29   propagatedBuildInputs = [
30     docopt
31     pdfminer-six
32     wand
33   ];
35   pythonRelaxDeps = [
36     "docopt"
37     "pdfminer.six"
38     "wand"
39   ];
41   # needs pyvoronoi, which isn't packaged yet
42   doCheck = false;
44   pythonImportsCheck = [
45     "py_pdf_parser"
46     "py_pdf_parser.loaders"
47   ];
49   meta = with lib; {
50     description = "A tool to help extracting information from structured PDFs";
51     homepage = "https://github.com/jstockwin/py-pdf-parser";
52     changelog = "https://github.com/jstockwin/py-pdf-parser/blob/v${version}/CHANGELOG.md";
53     license = licenses.mit;
54     maintainers = [ maintainers.marsam ];
55   };